1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-23 05:13:01 +00:00
kiwi-scp/src/kiwi-config.py

30 lines
604 B
Python
Raw Normal View History

2020-08-04 14:52:30 +00:00
#!/usr/bin/env python3
import argparse
2020-08-04 18:24:19 +00:00
from kiwi.config import *
2020-08-04 14:52:30 +00:00
def main():
parser = argparse.ArgumentParser(description='kiwi-config')
2020-08-04 18:24:19 +00:00
subs = parser.add_subparsers()
subs.required = True
subs.dest = 'command'
subs.add_parser('init', help="Create new kiwi-config instance")
subs.add_parser('add', help="Add a project to kiwi-config")
# parser.add_argument('cmd', metavar='command', type=str, help='subcommand to execute')
2020-08-04 14:52:30 +00:00
args = parser.parse_args()
2020-08-04 18:24:19 +00:00
print(args.command)
2020-08-04 14:52:30 +00:00
2020-08-04 18:24:19 +00:00
cf = Config.default()
cf.init()
2020-08-04 14:52:30 +00:00
pass
if __name__ == "__main__":
main()