fastcommand 0.1.6__tar.gz → 0.1.7__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.
- {fastcommand-0.1.6 → fastcommand-0.1.7}/PKG-INFO +11 -1
- {fastcommand-0.1.6 → fastcommand-0.1.7}/README.md +10 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/fastcommand.egg-info/PKG-INFO +11 -1
- {fastcommand-0.1.6 → fastcommand-0.1.7}/LICENSE +0 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/fastcommand/__init__.py +0 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/fastcommand/main.py +0 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/fastcommand.egg-info/SOURCES.txt +0 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/fastcommand.egg-info/dependency_links.txt +0 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/fastcommand.egg-info/top_level.txt +0 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/pyproject.toml +0 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/setup.cfg +0 -0
- {fastcommand-0.1.6 → fastcommand-0.1.7}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fastcommand
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.7
|
|
4
4
|
Author-email: Jason Morley <hello@jbmorley.co.uk>
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -46,6 +46,16 @@ def command_hello(options):
|
|
|
46
46
|
print("Hello, World!")
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
@fastcommand.command("goodbye", help="say goodbye", arguments=[
|
|
50
|
+
fastcommand.Argument("name"),
|
|
51
|
+
fastcommand.Argument("--wave", "-w", action="store_true", default=False)
|
|
52
|
+
])
|
|
53
|
+
def command_goodbye(options):
|
|
54
|
+
print(f"Goodbye, {options.name}!")
|
|
55
|
+
if options.wave:
|
|
56
|
+
print("👋")
|
|
57
|
+
|
|
58
|
+
|
|
49
59
|
def main():
|
|
50
60
|
cli = fastcommand.CommandParser(description="Simple fastcommand example.")
|
|
51
61
|
cli.use_logging(format="[%(levelname)s] %(message)s")
|
|
@@ -17,6 +17,16 @@ def command_hello(options):
|
|
|
17
17
|
print("Hello, World!")
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
@fastcommand.command("goodbye", help="say goodbye", arguments=[
|
|
21
|
+
fastcommand.Argument("name"),
|
|
22
|
+
fastcommand.Argument("--wave", "-w", action="store_true", default=False)
|
|
23
|
+
])
|
|
24
|
+
def command_goodbye(options):
|
|
25
|
+
print(f"Goodbye, {options.name}!")
|
|
26
|
+
if options.wave:
|
|
27
|
+
print("👋")
|
|
28
|
+
|
|
29
|
+
|
|
20
30
|
def main():
|
|
21
31
|
cli = fastcommand.CommandParser(description="Simple fastcommand example.")
|
|
22
32
|
cli.use_logging(format="[%(levelname)s] %(message)s")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fastcommand
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.7
|
|
4
4
|
Author-email: Jason Morley <hello@jbmorley.co.uk>
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -46,6 +46,16 @@ def command_hello(options):
|
|
|
46
46
|
print("Hello, World!")
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
@fastcommand.command("goodbye", help="say goodbye", arguments=[
|
|
50
|
+
fastcommand.Argument("name"),
|
|
51
|
+
fastcommand.Argument("--wave", "-w", action="store_true", default=False)
|
|
52
|
+
])
|
|
53
|
+
def command_goodbye(options):
|
|
54
|
+
print(f"Goodbye, {options.name}!")
|
|
55
|
+
if options.wave:
|
|
56
|
+
print("👋")
|
|
57
|
+
|
|
58
|
+
|
|
49
59
|
def main():
|
|
50
60
|
cli = fastcommand.CommandParser(description="Simple fastcommand example.")
|
|
51
61
|
cli.use_logging(format="[%(levelname)s] %(message)s")
|
|
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
|