airobo 0.1.10__py3-none-any.whl → 0.1.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
airobo/cli.py CHANGED
@@ -18,16 +18,23 @@ def main():
18
18
  parser = argparse.ArgumentParser(prog='airobo')
19
19
  subparsers = parser.add_subparsers(dest='command', help='Available commands')
20
20
 
21
- # Dynamically create subparsers for each command in the commands dictionary
22
- for command_name in commands.keys():
23
- subparsers.add_parser(command_name, help=f'Run {command_name} command')
21
+ # Create publish subparser with optional platform argument
22
+ publish_parser = subparsers.add_parser('publish', help='Publish app to stores')
23
+ publish_parser.add_argument('platform', nargs='?', choices=['ios', 'android'],
24
+ help='Platform to publish to (optional, defaults to both)')
25
+
26
+ # Create version subparser
27
+ subparsers.add_parser('version', help='Show version')
24
28
 
25
29
  args = parser.parse_args()
26
30
 
27
- # Iterate through commands dictionary to find matching key and execute callback
28
- if args.command in commands:
29
- callback = commands[args.command]
30
- callback()
31
+ # Handle commands
32
+ if args.command == 'publish':
33
+ # Pass the platform argument to publish function
34
+ platform = getattr(args, 'platform', None)
35
+ publish(platform)
36
+ elif args.command == 'version':
37
+ version()
31
38
  else:
32
39
  parser.print_help()
33
40
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airobo
3
- Version: 0.1.10
3
+ Version: 0.1.12
4
4
  Summary: A CLI tool for Airobo tasks
5
5
  Author-email: Joshua Morvant <joshua@aiarobo.com>
6
6
  Requires-Python: >=3.7
@@ -1,10 +1,10 @@
1
1
  airobo/__init__.py,sha256=wQC93xBJqTm_jHoO4hD_A9SP4vvVAMzOUM3vn_-bsB0,24
2
2
  airobo/api.py,sha256=4SrLqd-aq4BX7oZ0l9Diw1gojO6gCSIrcfW4YAR6t4s,2134
3
- airobo/cli.py,sha256=81dIVLVrsVbJa_aZK7SNzT7dHc6aEB3jIaq4Fm5MBvo,991
3
+ airobo/cli.py,sha256=DSnMZ3mY2KOQacZRiapAQ8opshGuc8SkCzuyvBXdMm4,1279
4
4
  airobo/modules/publishAndroid.py,sha256=D1tmKAoYlIt85MhtOyAZXiVtscxiIgzFodqbVEbU_Ok,98
5
5
  airobo/modules/publishIOS.py,sha256=5HtnBejXtFNGJ719ydfKX0IO4hoJD5MlxKbmD-S7Dbg,90
6
- airobo-0.1.10.dist-info/METADATA,sha256=Vy9ZxoV1LWVsFCBePQDn_cggVEZ8kVXMeZf_6gF_SCA,208
7
- airobo-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- airobo-0.1.10.dist-info/entry_points.txt,sha256=tWld-TShvEFSonDWXCvsiBq-dNOY3Qo6FI48pd1S7eE,43
9
- airobo-0.1.10.dist-info/top_level.txt,sha256=3vchuQftD3xE45bZMuHJVTRVpiC8FKJyJwsrGAjfwKg,7
10
- airobo-0.1.10.dist-info/RECORD,,
6
+ airobo-0.1.12.dist-info/METADATA,sha256=gGWRE3oA6o_cFkM_KgSNmYnjiDnxCWyay1t-2bsaG1s,208
7
+ airobo-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ airobo-0.1.12.dist-info/entry_points.txt,sha256=tWld-TShvEFSonDWXCvsiBq-dNOY3Qo6FI48pd1S7eE,43
9
+ airobo-0.1.12.dist-info/top_level.txt,sha256=3vchuQftD3xE45bZMuHJVTRVpiC8FKJyJwsrGAjfwKg,7
10
+ airobo-0.1.12.dist-info/RECORD,,