Skip to content
Snippets Groups Projects
Commit e6e5f8cc authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Continued implementing capability launcher

parent 9e874b1a
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Sends a request for a capability execution to the capability service
import argparse
import requests
from workspaces.schema import Capability
from ._version import __version__ as version
......@@ -32,12 +33,16 @@ def _make_arg_parser() -> argparse.ArgumentParser:
)
parser.add_argument(
'-c', '--capability', action='store', required=True,
help='file that contains a capability definition'
)
return parser
def main():
pass
args = _make_arg_parser().parse_args()
capability = Capability.from_file(args['capability'])
print(capability)
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment