Skip to content

Commit

Permalink
Basic filesystem checking in new CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
jackstanek committed Jul 27, 2016
1 parent 444a9f8 commit 594dd0e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions botbot/botbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,18 @@ def main():

# Initialize the checker
args = parser.parse_args()

# Decide the command we're using
if args.cmd == 'file':
path = args.path
outpath = args.out if args.out else sys.stdout

chkr = checker.OneshotChecker(outpath, sqlcache.get_dbpath())
chkr.check_all(path, shared=args.shared, link=args.follow_symlinks,
verbose=args.verbose)

elif args.cmd == 'daemon':
pass

elif args.cmd == 'env':
pass

0 comments on commit 594dd0e

Please sign in to comment.