pkgs.clan: init barebones version

This commit is contained in:
lassulus
2023-07-17 18:53:29 +02:00
parent 6ed261da1e
commit e3af3e9fb6
3 changed files with 156 additions and 0 deletions

24
pkgs/clan-cli/clan.py Executable file
View File

@@ -0,0 +1,24 @@
# !/usr/bin/env python3
import sys
import subprocess
def showhelp():
print('''
usage:
clan admin ...
clan join ...
clan delete ...
''')
try:
cmd = f'clan-{sys.argv[1]}'
except: # noqa
showhelp()
try:
subprocess.Popen([cmd] + sys.argv[2:])
except FileNotFoundError:
print(f'command {cmd} not found')
exit(2)