Delete useless quotes in YAML

This commit is contained in:
Kloadut 2012-10-22 21:09:42 +02:00
parent dd7b0b9878
commit 36745cda45

View file

@ -10,9 +10,9 @@
# (script) | category | action | parameters # (script) | category | action | parameters
# #
# #
# Above example will lead to the function "monitor_info(args)" # Above example will lead to the function 'monitor_info(args)'
# in the file "yunohost_monitor.py" with "cpu" and "ram" # in the file 'yunohost_monitor.py' with 'cpu' and 'ram'
# stored in an "args" dictionnary. # stored in an 'args' dictionnary.
# #
# Usage: # Usage:
# You can add a category at the first level, action at the second one, # You can add a category at the first level, action at the second one,
@ -25,420 +25,420 @@
# http://docs.python.org/dev/library/argparse.html # http://docs.python.org/dev/library/argparse.html
# #argparse.ArgumentParser.add_argument # #argparse.ArgumentParser.add_argument
# #
# Don't forget to turn argument yaml style setting: "value" # Don't forget to turn argument yaml style (setting: value)
# #
########################################################################## ##########################################################################
############################# #############################
# General args # # General args #
############################# #############################
"general_arguments": general_arguments:
"-v": -v:
"full": "--version" full: --version
"help": "Display YunoHost version" help: Display YunoHost version
"action": "version" action: version
"version": "YunoHost 2.0 beta1" version: YunoHost 2.0 beta1
############################# #############################
# User # # User #
############################# #############################
"user": user:
"category_help": "Manage users" category_help: Manage users
"actions": actions:
### user_list() ### user_list()
"list": list:
"action_help": "List users" action_help: List users
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"--fields": --fields:
"help": "fields to fetch" help: fields to fetch
"nargs": "+" nargs: "+"
"-f": -f:
"full": "--filter" full: --filter
"help": "LDAP filter used to search" help: LDAP filter used to search
"-l": -l:
"full": "--limit" full: --limit
"help": "Maximum number of user fetched" help: Maximum number of user fetched
"-o": -o:
"full": "--offset" full: --offset
"help": "Starting number for user fetching" help: Starting number for user fetching
### user_create() ### user_create()
"create": create:
"action_help": "Create user" action_help: Create user
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"-u": -u:
"full": "--username" full: --username
"help": "Must be unique" help: Must be unique
"-f": -f:
"full": "--firstname" full: --firstname
"-l": -l:
"full": "--lastname" full: --lastname
"-m": -m:
"full": "--mail" full: --mail
"help": "Main mail address must be unique" help: Main mail address must be unique
"-p": -p:
"full": "--password" full: --password
### user_delete() ### user_delete()
"delete": delete:
"action_help": "Delete user" action_help: Delete user
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"users": users:
"help": "Username of users to delete" help: Username of users to delete
"nargs": "+" nargs: "+"
### user_update() ### user_update()
"update": update:
"action_help": "Update user informations" action_help: Update user informations
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"user": user:
"help": "Username of user to update" help: Username of user to update
"-f": -f:
"full": "--firstname" full: --firstname
"-l": -l:
"full": "--lastname" full: --lastname
"-m": -m:
"full": "--mail" full: --mail
"-cp": -cp:
"full": "--change-password" full: --change-password
"help": "New password to set" help: New password to set
"metavar": "PASSWORD" metavar: PASSWORD
"--add-mailforward": --add-mailforward:
"help": "Mailforward addresses to add" help: Mailforward addresses to add
"nargs": "+" nargs: "+"
"metavar": "MAIL" metavar: MAIL
"--remove-mailforward": --remove-mailforward:
"help": "Mailforward addresses to remove" help: Mailforward addresses to remove
"nargs": "+" nargs: "+"
"metavar": "MAIL" metavar: MAIL
"-add-mailalias": -add-mailalias:
"help": "Mail aliases to add" help: Mail aliases to add
"nargs": "+" nargs: "+"
"metavar": "MAIL" metavar: MAIL
"-remove-mailalias": -remove-mailalias:
"help": "Mail aliases to remove" help: Mail aliases to remove
"nargs": "+" nargs: "+"
"metavar": "MAIL" metavar: MAIL
### user_info() ### user_info()
"info": info:
"action_help": "Get user informations" action_help: Get user informations
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"user": user:
"nargs": "?" nargs: "?"
"-m": -m:
"full": "--mail" full: --mail
"-cn": -cn:
"full": "--fullname" full: --fullname
############################# #############################
# Domain # # Domain #
############################# #############################
"domain": domain:
"category_help": "Manage domains" category_help: Manage domains
"actions": actions:
### domain_list() ### domain_list()
"list": list:
"action_help": "List domains" action_help: List domains
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"-f": -f:
"full": "--filter" full: --filter
"help": "LDAP filter used to search" help: LDAP filter used to search
"-l": -l:
"full": "--limit" full: --limit
"help": "Maximum number of domain fetched" help: Maximum number of domain fetched
"-o": -o:
"full": "--offset" full: --offset
"help": "Starting number for domain fetching" help: Starting number for domain fetching
### domain_add() ### domain_add()
"add": add:
"action_help": "Create a custom domain" action_help: Create a custom domain
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"domain": domain:
"help": "Domain name to add" help: Domain name to add
### domain_remove() ### domain_remove()
"remove": remove:
"action_help": "Delete domains" action_help: Delete domains
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"domain": domain:
"help": "Domain(s) to delete" help: Domain(s) to delete
"nargs": "+" nargs: "+"
### domain_info() ### domain_info()
"info": info:
"action_help": "Get domain informations" action_help: Get domain informations
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"domain": domain:
"help": "" help: ""
### domain_renewcert() ### domain_renewcert()
"renewcert": renewcert:
"action_help": "Renew domain certificate" action_help: Renew domain certificate
"arguments": arguments:
"domain": domain:
"help": "" help: ""
############################# #############################
# App # # App #
############################# #############################
"app": app:
"category_help": "Manage apps" category_help: Manage apps
"actions": actions:
### app_list() ### app_list()
"list": list:
"action_help": "List apps" action_help: List apps
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"--fields": --fields:
"help": "fields to fetch" help: fields to fetch
"nargs": "+" nargs: "+"
"-f": -f:
"full": "--filter" full: --filter
"help": "LDAP filter used to search" help: LDAP filter used to search
"-l": -l:
"full": "--limit" full: --limit
"help": "Maximum number of app fetched" help: Maximum number of app fetched
"-o": -o:
"full": "--offset" full: --offset
"help": "Starting number for app fetching" help: Starting number for app fetching
### app_install() TODO: Write help ### app_install() TODO: Write help
"install": install:
"action_help": "Install apps" action_help: Install apps
"connections": connections:
- "ldap" - ldap
- "dns" - dns
"arguments": arguments:
"app": app:
"nargs": "+" nargs: "+"
"-d": -d:
"full": "--domain" full: --domain
"-p": -p:
"full": "--path" full: --path
"-l": -l:
"full": "--label" full: --label
"--public": --public:
"action": "store_true" action: store_true
"--protected": --protected:
"action": "store_true" action: store_true
### app_remove() TODO: Write help ### app_remove() TODO: Write help
"remove": remove:
"action_help": "Remove app" action_help: Remove app
"connections": connections:
- "ldap" - ldap
- "dns" - dns
"arguments": arguments:
"app": app:
"help": "App(s) to delete" help: App(s) to delete
"nargs": "+" nargs: "+"
### app_upgrade() ### app_upgrade()
"upgrade": upgrade:
"action_help": "Upgrade app" action_help: Upgrade app
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"app": app:
"help": "App(s) to upgrade (default all)" help: App(s) to upgrade (default all)
"nargs": "*" nargs: "*"
### app_info() TODO: Write help ### app_info() TODO: Write help
"info": info:
"action_help": "Get app informations" action_help: Get app informations
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"app": app:
"help": "" help: ""
### app_addaccess() TODO: Write help ### app_addaccess() TODO: Write help
"addaccess": addaccess:
"action_help": "Grant access right to users (everyone by default)" action_help: Grant access right to users (everyone by default)
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"app": app:
"nargs": "+" nargs: "+"
"-u": -u:
"full": "--user" full: --user
"nargs": "+" nargs: "+"
### app_removeaccess() TODO: Write help ### app_removeaccess() TODO: Write help
"removeaccess": removeaccess:
"action_help": "Revoke access right to users (everyone by default)" action_help: Revoke access right to users (everyone by default)
"connections": connections:
- "ldap" - ldap
"arguments": arguments:
"app": app:
"nargs": "+" nargs: "+"
"-u": -u:
"full": "--user" full: --user
"nargs": "+" nargs: "+"
############################# #############################
# Repository # # Repository #
############################# #############################
"repo": repo:
"category_help": "Manage app repositories" category_help: Manage app repositories
"actions": actions:
### repo_list() ### repo_list()
"list": list:
"action_help": "List repositories" action_help: List repositories
"connections": connections:
- "repo" - repo
"arguments": arguments:
"-f": -f:
"full": "--filter" full: --filter
"help": "LDAP filter used to search" help: LDAP filter used to search
"-l": -l:
"full": "--limit" full: --limit
"help": "Maximum number of repository fetched" help: Maximum number of repository fetched
"-o": -o:
"full": "--offset" full: --offset
"help": "Starting number for repository fetching" help: Starting number for repository fetching
### repo_add() ### repo_add()
"add": add:
"action_help": "Add app repository" action_help: Add app repository
"connections": connections:
- "repo" - repo
"arguments": arguments:
"url": url:
"help": "URL of the repository" help: URL of the repository
"-n": -n:
"full": "--name" full: --name
"help": "Unique name of the repository" help: Unique name of the repository
### repo_remove() ### repo_remove()
"remove": remove:
"action_help": "Remove repository" action_help: Remove repository
"connections": connections:
- "repo" - repo
"arguments": arguments:
"repo": repo:
"help": "Name or URL of the repository" help: Name or URL of the repository
### repo_update() ### repo_update()
"update": update:
"action_help": "Update app list from the repositories" action_help: Update app list from the repositories
"connections": connections:
- "repo" - repo
############################# #############################
# Monitor # # Monitor #
############################# #############################
"monitor": monitor:
"category_help": "Monitoring functions" category_help: Monitoring functions
"actions": actions:
### monitor_info() ### monitor_info()
"info": info:
"action_help": "Check System" action_help: Check System
"arguments": arguments:
"-m": -m:
"full": "--memory" full: --memory
"help": "Check Memory" help: Check Memory
"action": "store_true" action: store_true
"-c": -c:
"full": "--cpu" full: --cpu
"help": "Check CPU" help: Check CPU
"action": "store_true" action: store_true
"-d": -d:
"full": "--disk" full: --disk
"help": "Check Disk" help: Check Disk
"action": "store_true" action: store_true
"-i": -i:
"full": "--ifconfig" full: --ifconfig
"help": "Ifconfig" help: Ifconfig
"action": "store_true" action: store_true
"-u": -u:
"full": "--uptime" full: --uptime
"help": "Show Uptime" help: Show Uptime
"action": "store_true" action: store_true
"-p": -p:
"full": "--process" full: --process
"help": "Show Process Account" help: Show Process Account
"action": "store_true" action: store_true
############################# #############################
# Firewall # # Firewall #
############################# #############################
"firewall": firewall:
"category_help": "Manage firewall rules" category_help: Manage firewall rules
"actions": actions:
### firewall_list() ### firewall_list()
"list": list:
"action_help": "List all firewall rules" action_help: List all firewall rules
"connections": connections:
- "firewall" - firewall
### firewall_allow() ### firewall_allow()
"allow": allow:
"action_help": "Allow connection port/protocol" action_help: Allow connection port/protocol
"connections": connections:
- "firewall" - firewall
"arguments": arguments:
"port": port:
"help": "Port to open" help: Port to open
"protocol": protocol:
"help": "Protocol associated with port" help: Protocol associated with port
"choices": choices:
- "UDP" - UDP
- "TCP" - TCP
- "Both" - Both
"name": name:
"help": "Reference name of the rule" help: Reference name of the rule
### firewall_disallow() ### firewall_disallow()
"disallow": disallow:
"action_help": "Disallow connection" action_help: Disallow connection
"connections": connections:
- "firewall" - firewall
"arguments": arguments:
"name": name:
"help": "Reference name of the rule to delete" help: Reference name of the rule to delete
############################# #############################
# Tools # # Tools #
############################# #############################
"tools": tools:
"category_help": "Specific tools" category_help: Specific tools
"actions": actions:
### tools_install() ### tools_install()
"install": install:
"action_help": "Install YunoHost LDAP initialization" action_help: Install YunoHost LDAP initialization
"connections": connections:
- "ldap" - ldap