mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
explain what the command does
This commit is contained in:
parent
425341152f
commit
aacd253c4c
1 changed files with 18 additions and 1 deletions
|
@ -1,13 +1,30 @@
|
|||
#!/usr/bin/env python
|
||||
'''
|
||||
Quickstart for creating an/or extending the functionality of your SaltStack installation
|
||||
|
||||
usage: salt-extend [-h] [--extension EXTENSION]
|
||||
[--salt-directory SALT_DIRECTORY] [--name NAME]
|
||||
[--description DESCRIPTION] [--no-merge]
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
--extension EXTENSION, -e EXTENSION
|
||||
Extension type, e.g. 'module', 'state'.
|
||||
--salt-directory SALT_DIRECTORY, -o SALT_DIRECTORY
|
||||
Directory where your salt installation is kept
|
||||
(defaults to .).
|
||||
--name NAME, -n NAME Module name.
|
||||
--description DESCRIPTION, -d DESCRIPTION
|
||||
Short description of what the module does.
|
||||
--no-merge Don't merge the module into the salt directory, keep
|
||||
in a temp location
|
||||
'''
|
||||
from salt.scripts import salt_extend
|
||||
|
||||
if __name__ == '__main__':
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(description="Quickly boilerplate an extension to SaltStack")
|
||||
parser.add_argument(
|
||||
"--extension",
|
||||
"-e",
|
||||
|
|
Loading…
Add table
Reference in a new issue