diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-26 16:50:04 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-26 16:50:04 +0200 |
commit | 699833d933157443b97218e9df378c9d52c66ec2 (patch) | |
tree | 5ed2d75c1a058b581a51d63731b57d41f7be913c /cli/cli.py | |
parent | 6d020825e5f2fa09bd5488954ecec2afe8c85aef (diff) | |
download | my_new_personal_website-699833d933157443b97218e9df378c9d52c66ec2.tar.xz my_new_personal_website-699833d933157443b97218e9df378c9d52c66ec2.zip |
Move touch_cli to external file
Diffstat (limited to 'cli/cli.py')
-rw-r--r-- | cli/cli.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |