From 699833d933157443b97218e9df378c9d52c66ec2 Mon Sep 17 00:00:00 2001 From: neodarz <neodarz@neodarz.net> Date: Sun, 26 May 2019 16:50:04 +0200 Subject: Move touch_cli to external file --- cli/cli.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli') diff --git a/cli/cli.py b/cli/cli.py index 0de89048..232bca1b 100644 --- a/cli/cli.py +++ b/cli/cli.py @@ -148,3 +148,8 @@ def touch(filename): os.rename(fullpath, new_fullpath) sys.stderr.write("%srenamed to %s%s\n" % (YELLOW, new_filename, RESET)) return 0 + + +def touch_cli(args): + """CLI wrapper around touch.""" + touch(args.filename) -- cgit v1.2.1