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()
|
2020-08-06 01:45:12 +00:00
|
|
|
# cf.user_input()
|
|
|
|
cf.dump()
|
2020-08-04 14:52:30 +00:00
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|