Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.core
Commits
65e85713
Commit
65e85713
authored
Nov 02, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic usage
parent
db7982db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
slapos/entry.py
slapos/entry.py
+26
-3
No files found.
slapos/entry.py
View file @
65e85713
...
@@ -170,9 +170,31 @@ def main():
...
@@ -170,9 +170,31 @@ def main():
else
:
else
:
is_node
=
False
is_node
=
False
# XXX-Cedric: add "description" for parser.
usage
=
"""SlapOS command line interface.
For more informations, refer to SlapOS documentation.
Client subcommands usage:
slapos request <instance-name> <software-url> [--configuration arg1=value1 arg2=value2 ... argN=valueN]
slapos supply <software-url> <node-id>
slapos console
Node subcommands usage:
slapos node
slapos node register <node-id>
slapos node software
slapos node instance
slapos node report
slapos node start <process>
slapos node stop <process>
slapos node restart <process>
slapos node tail [process]
slapos node status <process>
slapos node supervisorctl
slapos node supervisord
"""
# Parse arguments
# Parse arguments
parser
=
argparse
.
ArgumentParser
()
# XXX remove the "positional arguments" from help message
parser
=
argparse
.
ArgumentParser
(
usage
=
usage
)
parser
.
add_argument
(
'command'
)
parser
.
add_argument
(
'command'
)
parser
.
add_argument
(
'argument_list'
,
nargs
=
argparse
.
REMAINDER
)
parser
.
add_argument
(
'argument_list'
,
nargs
=
argparse
.
REMAINDER
)
...
@@ -187,5 +209,6 @@ def main():
...
@@ -187,5 +209,6 @@ def main():
parser
.
print_help
()
parser
.
print_help
()
sys
.
exit
(
1
)
sys
.
exit
(
1
)
except
EntryPointNotImplementedError
,
exception
:
except
EntryPointNotImplementedError
,
exception
:
print
'Not yet implemented: %s. Please use old-style commands or SlapOS '
print
'Not yet implemented: %s. Please use old-style commands or SlapOS '
\
'Master web UI.'
%
exception
'Master web UI.'
%
exception
sys
.
exit
(
1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment