airobo 0.1.11__tar.gz → 0.1.13__tar.gz
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-0.1.11 → airobo-0.1.13}/PKG-INFO +1 -1
- airobo-0.1.13/airobo/cli.py +44 -0
- {airobo-0.1.11 → airobo-0.1.13}/airobo.egg-info/PKG-INFO +1 -1
- {airobo-0.1.11 → airobo-0.1.13}/pyproject.toml +1 -1
- airobo-0.1.11/airobo/cli.py +0 -37
- {airobo-0.1.11 → airobo-0.1.13}/airobo/__init__.py +0 -0
- {airobo-0.1.11 → airobo-0.1.13}/airobo/api.py +0 -0
- {airobo-0.1.11 → airobo-0.1.13}/airobo/modules/publishAndroid.py +0 -0
- {airobo-0.1.11 → airobo-0.1.13}/airobo/modules/publishIOS.py +0 -0
- {airobo-0.1.11 → airobo-0.1.13}/airobo.egg-info/SOURCES.txt +0 -0
- {airobo-0.1.11 → airobo-0.1.13}/airobo.egg-info/dependency_links.txt +0 -0
- {airobo-0.1.11 → airobo-0.1.13}/airobo.egg-info/entry_points.txt +0 -0
- {airobo-0.1.11 → airobo-0.1.13}/airobo.egg-info/top_level.txt +0 -0
- {airobo-0.1.11 → airobo-0.1.13}/setup.cfg +0 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
"""
|
2
|
+
airobo/cli.py
|
3
|
+
|
4
|
+
CLI for the airobo tool.
|
5
|
+
"""
|
6
|
+
import argparse
|
7
|
+
from airobo.api import publish, version
|
8
|
+
|
9
|
+
commands = {
|
10
|
+
"publish": publish,
|
11
|
+
"version": version,
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
#---------------------------------------------------------------------------------------------------------
|
16
|
+
|
17
|
+
def main():
|
18
|
+
parser = argparse.ArgumentParser(prog='airobo')
|
19
|
+
subparsers = parser.add_subparsers(dest='command', help='Available commands')
|
20
|
+
|
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')
|
28
|
+
|
29
|
+
args = parser.parse_args()
|
30
|
+
|
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()
|
38
|
+
else:
|
39
|
+
parser.print_help()
|
40
|
+
|
41
|
+
#---------------------------------------
|
42
|
+
|
43
|
+
if __name__ == "__main__":
|
44
|
+
main()
|
airobo-0.1.11/airobo/cli.py
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
airobo/cli.py
|
3
|
-
|
4
|
-
CLI for the airobo tool.
|
5
|
-
"""
|
6
|
-
import argparse
|
7
|
-
from airobo.api import publish, version
|
8
|
-
|
9
|
-
commands = {
|
10
|
-
"publish": publish,
|
11
|
-
"version": version,
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
#---------------------------------------------------------------------------------------------------------
|
16
|
-
|
17
|
-
def main():
|
18
|
-
parser = argparse.ArgumentParser(prog='airobo')
|
19
|
-
subparsers = parser.add_subparsers(dest='command', help='Available commands')
|
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')
|
24
|
-
|
25
|
-
args = parser.parse_args()
|
26
|
-
|
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
|
-
else:
|
32
|
-
parser.print_help()
|
33
|
-
|
34
|
-
#---------------------------------------
|
35
|
-
|
36
|
-
if __name__ == "__main__":
|
37
|
-
main()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|