moulinette/action_map.yml

643 lines
20 KiB
YAML
Raw Normal View History

2012-10-22 20:52:15 +02:00
##########################################################################
# Category/actions/arguments file
#
#
# Except for general_arguments, this file contains 3 levels
# as in this sample command line:
#
# yunohost monitor info --cpu --ram
# ^ ^ ^ ^
# (script) | category | action | parameters
#
#
2012-10-22 21:09:42 +02:00
# Above example will lead to the function 'monitor_info(args)'
# in the file 'yunohost_monitor.py' with 'cpu' and 'ram'
# stored in an 'args' dictionnary.
2012-10-22 20:52:15 +02:00
#
# Usage:
# You can add a category at the first level, action at the second one,
# and arguments at the third one.
# If a connexion is needed for the action, don't forget to add it to
# the action parameters (ldap, repo, dns or firewall).
#
# Documentation:
# You can see all arguments settings at the argparse documentation:
# http://docs.python.org/dev/library/argparse.html
# #argparse.ArgumentParser.add_argument
#
2012-10-22 21:09:42 +02:00
# Don't forget to turn argument yaml style (setting: value)
2012-10-22 20:52:15 +02:00
#
##########################################################################
2012-12-01 15:33:56 +01:00
2013-02-12 13:52:11 +01:00
# TODO: Add patern for all this
2012-10-22 20:52:15 +02:00
#############################
# General args #
#############################
2012-10-22 21:09:42 +02:00
general_arguments:
-v:
full: --version
help: Display YunoHost version
action: version
version: YunoHost 2.0 beta1
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
#############################
# User #
#############################
2012-12-01 15:33:56 +01:00
user:
2012-10-22 21:09:42 +02:00
category_help: Manage users
2012-12-01 15:33:56 +01:00
actions:
2012-10-22 20:52:15 +02:00
### user_list()
2012-12-01 15:33:56 +01:00
list:
2012-10-22 21:09:42 +02:00
action_help: List users
2012-12-01 15:33:56 +01:00
arguments:
--fields:
2012-10-22 21:09:42 +02:00
help: fields to fetch
nargs: "+"
2012-12-01 15:33:56 +01:00
-f:
2012-10-22 21:09:42 +02:00
full: --filter
help: LDAP filter used to search
2012-12-01 15:33:56 +01:00
-l:
2012-10-22 21:09:42 +02:00
full: --limit
2012-12-01 15:33:56 +01:00
help: Maximum number of user fetched
-o:
2012-10-22 21:09:42 +02:00
full: --offset
2012-12-01 15:33:56 +01:00
help: Starting number for user fetching
2012-10-22 20:52:15 +02:00
### user_create()
2012-12-01 15:33:56 +01:00
create:
2012-10-22 21:09:42 +02:00
action_help: Create user
2012-12-01 15:33:56 +01:00
arguments:
-u:
2012-10-22 21:09:42 +02:00
full: --username
help: Must be unique
2012-11-08 19:20:13 +01:00
ask: "Username"
2012-11-09 18:04:15 +01:00
pattern: '^[a-z0-9_]+$'
2012-12-01 15:33:56 +01:00
-f:
2012-10-22 21:09:42 +02:00
full: --firstname
2012-11-08 19:20:13 +01:00
ask: "Firstname"
2012-12-01 15:33:56 +01:00
-l:
2012-10-22 21:09:42 +02:00
full: --lastname
2012-11-08 19:20:13 +01:00
ask: "Lastname"
2012-12-01 15:33:56 +01:00
-m:
2012-10-22 21:09:42 +02:00
full: --mail
help: Main mail address must be unique
2012-11-08 19:20:13 +01:00
ask: "Mail address"
pattern: '^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$'
2012-12-01 15:33:56 +01:00
-p:
2012-10-22 21:09:42 +02:00
full: --password
2012-11-08 19:20:13 +01:00
ask: "User password"
password: yes
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### user_delete()
2012-12-01 15:33:56 +01:00
delete:
2012-10-22 21:09:42 +02:00
action_help: Delete user
2012-12-01 15:33:56 +01:00
arguments:
-u:
full: --users
2012-10-22 21:09:42 +02:00
help: Username of users to delete
ask: "Users to delete"
pattern: '^[a-z0-9_]+$'
2012-10-29 17:47:37 +01:00
nargs: "*"
--purge:
action: store_true
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### user_update()
2012-12-01 15:33:56 +01:00
update:
2012-10-22 21:09:42 +02:00
action_help: Update user informations
2012-12-01 15:33:56 +01:00
arguments:
username:
2012-10-22 21:09:42 +02:00
help: Username of user to update
2012-12-01 15:33:56 +01:00
-f:
2012-10-22 21:09:42 +02:00
full: --firstname
2012-12-01 15:33:56 +01:00
-l:
2012-10-22 21:09:42 +02:00
full: --lastname
2012-12-01 15:33:56 +01:00
-m:
2012-10-22 21:09:42 +02:00
full: --mail
2012-12-01 15:33:56 +01:00
-p:
2012-10-22 21:09:42 +02:00
full: --change-password
help: New password to set
metavar: PASSWORD
2012-12-01 15:33:56 +01:00
--add-mailforward:
2012-10-22 21:09:42 +02:00
help: Mailforward addresses to add
2013-06-08 09:50:43 +02:00
nargs: "*"
2012-10-22 21:09:42 +02:00
metavar: MAIL
2012-12-01 15:33:56 +01:00
--remove-mailforward:
2012-10-22 21:09:42 +02:00
help: Mailforward addresses to remove
2013-06-08 09:50:43 +02:00
nargs: "*"
2012-10-22 21:09:42 +02:00
metavar: MAIL
2012-12-01 15:33:56 +01:00
--add-mailalias:
2012-10-22 21:09:42 +02:00
help: Mail aliases to add
2013-06-08 09:50:43 +02:00
nargs: "*"
2012-10-22 21:09:42 +02:00
metavar: MAIL
2012-12-01 15:33:56 +01:00
--remove-mailalias:
2012-10-22 21:09:42 +02:00
help: Mail aliases to remove
2013-06-08 09:50:43 +02:00
nargs: "*"
2012-10-22 21:09:42 +02:00
metavar: MAIL
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### user_info()
2012-12-01 15:33:56 +01:00
info:
2012-10-22 21:09:42 +02:00
action_help: Get user informations
2012-12-01 15:33:56 +01:00
arguments:
user-or-mail:
help: Username or mail to get informations
2012-10-22 20:52:15 +02:00
#############################
# Domain #
#############################
2012-12-01 15:33:56 +01:00
domain:
2012-10-22 21:09:42 +02:00
category_help: Manage domains
2012-12-01 15:33:56 +01:00
actions:
2012-10-22 20:52:15 +02:00
### domain_list()
2012-12-01 15:33:56 +01:00
list:
2012-10-22 21:09:42 +02:00
action_help: List domains
2012-12-01 15:33:56 +01:00
arguments:
-f:
2012-10-22 21:09:42 +02:00
full: --filter
help: LDAP filter used to search
2012-12-01 15:33:56 +01:00
-l:
2012-10-22 21:09:42 +02:00
full: --limit
2012-12-01 15:33:56 +01:00
help: Maximum number of domain fetched
-o:
2012-10-22 21:09:42 +02:00
full: --offset
2012-12-01 15:33:56 +01:00
help: Starting number for domain fetching
2012-10-22 20:52:15 +02:00
### domain_add()
2012-12-01 15:33:56 +01:00
add:
2012-10-22 21:09:42 +02:00
action_help: Create a custom domain
2012-12-01 15:33:56 +01:00
arguments:
domains:
2012-10-22 21:09:42 +02:00
help: Domain name to add
2013-02-27 22:32:31 +01:00
nargs: '+'
2012-11-09 18:04:15 +01:00
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
2013-06-22 13:37:44 +02:00
-r:
full: --raw
help: Auto-configure Apache and LemonLDAP for the domain
action: store_true
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### domain_remove()
2012-12-01 15:33:56 +01:00
remove:
2012-10-22 21:09:42 +02:00
action_help: Delete domains
2012-12-01 15:33:56 +01:00
arguments:
domains:
2012-10-22 21:09:42 +02:00
help: Domain(s) to delete
2013-02-27 22:32:31 +01:00
nargs: "+"
2012-11-09 18:04:15 +01:00
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### domain_info()
2012-12-01 15:33:56 +01:00
info:
2012-10-22 21:09:42 +02:00
action_help: Get domain informations
2012-12-01 15:33:56 +01:00
arguments:
domain:
2012-10-22 21:09:42 +02:00
help: ""
2012-11-09 18:04:15 +01:00
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
2012-10-22 21:09:42 +02:00
2012-10-22 20:52:15 +02:00
### domain_renewcert()
2012-12-01 15:33:56 +01:00
renewcert:
2012-10-22 21:09:42 +02:00
action_help: Renew domain certificate
2012-12-01 15:33:56 +01:00
arguments:
domain:
2012-10-22 21:09:42 +02:00
help: ""
2012-11-09 18:04:15 +01:00
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
2012-10-22 20:52:15 +02:00
#############################
# App #
#############################
2012-12-01 15:33:56 +01:00
app:
2012-10-22 21:09:42 +02:00
category_help: Manage apps
2012-12-01 15:33:56 +01:00
actions:
2013-02-24 17:36:58 +01:00
### app_fetchlist()
fetchlist:
2012-11-16 13:16:37 +01:00
action_help: Fetch application list from app server
arguments:
-u:
full: --url
2012-12-01 15:33:56 +01:00
help: URL of remote JSON list (default http://fapp.yunohost.org/app/list/raw)
2013-02-24 17:36:58 +01:00
-n:
full: --name
help: Name of the list (default fapp)
2012-10-22 20:52:15 +02:00
2013-02-25 22:44:00 +01:00
### app_listlists()
listlists:
action_help: List fetched lists
2013-02-25 22:54:28 +01:00
### app_removelist()
removelist:
action_help: Remove list from the repositories
arguments:
-n:
full: --name
help: Name of the list to remove
ask: "List to remove"
pattern: '^[a-z0-9_]+$'
2012-10-22 20:52:15 +02:00
### app_list()
2012-12-01 15:33:56 +01:00
list:
2012-10-22 21:09:42 +02:00
action_help: List apps
2012-12-01 15:33:56 +01:00
arguments:
-l:
2012-10-22 21:09:42 +02:00
full: --limit
2012-12-01 15:33:56 +01:00
help: Maximum number of app fetched
-o:
2012-10-22 21:09:42 +02:00
full: --offset
2012-12-01 15:33:56 +01:00
help: Starting number for app fetching
-f:
full: --filter
help: Name filter of app_id or app_name
-r:
full: --raw
help: Return the full app_dict
action: store_true
2012-12-01 15:33:56 +01:00
2013-03-02 11:19:20 +01:00
### app_map()
map:
action_help: List apps by domain
arguments:
-a:
full: --app
help: Specific app to map
-r:
full: --raw
help: Return complete dict
action: store_true
2013-03-02 11:19:20 +01:00
2012-10-22 20:52:15 +02:00
### app_install() TODO: Write help
2012-12-01 15:33:56 +01:00
install:
2012-10-22 21:09:42 +02:00
action_help: Install apps
2012-12-01 15:33:56 +01:00
arguments:
app:
2012-11-16 13:16:37 +01:00
help: App to install
2012-12-01 15:33:56 +01:00
-d:
2012-10-22 21:09:42 +02:00
full: --domain
ask: "App domain"
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
2012-12-01 15:33:56 +01:00
-p:
2012-10-22 21:09:42 +02:00
full: --path
2013-02-26 23:13:49 +01:00
default: "/"
2013-03-02 00:17:45 +01:00
pattern: '^\/([a-zA-Z-_\/\.0-9])*$'
2012-12-01 15:33:56 +01:00
-l:
2012-10-22 21:09:42 +02:00
full: --label
2013-03-01 17:46:42 +01:00
-m:
full: --mode
2013-03-02 00:17:45 +01:00
help: level of privacy of the app (public|protected|private)
2013-03-01 17:46:42 +01:00
default: 'private'
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### app_remove() TODO: Write help
2012-12-01 15:33:56 +01:00
remove:
2012-10-22 21:09:42 +02:00
action_help: Remove app
2012-12-01 15:33:56 +01:00
arguments:
app:
2012-10-22 21:09:42 +02:00
help: App(s) to delete
-i:
full: --instance
help: App instance number to delete
nargs: '*'
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### app_upgrade()
2012-12-01 15:33:56 +01:00
upgrade:
2012-10-22 21:09:42 +02:00
action_help: Upgrade app
2012-12-01 15:33:56 +01:00
arguments:
app:
2012-10-22 21:09:42 +02:00
help: App(s) to upgrade (default all)
nargs: "*"
-i:
full: --instance
help: App instance number to upgrade
nargs: "*"
-u:
full: --url
help: Git url to fetch for upgrade
-f:
full: --file
help: Folder or tarball for upgrade
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### app_info() TODO: Write help
2012-12-01 15:33:56 +01:00
info:
2012-10-22 21:09:42 +02:00
action_help: Get app informations
2012-12-01 15:33:56 +01:00
arguments:
app:
help: App ID
-i:
full: --instance
help: App instance number
-r:
full: --raw
help: Return the full app_dict
action: store_true
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### app_addaccess() TODO: Write help
2012-12-01 15:33:56 +01:00
addaccess:
2012-10-22 21:09:42 +02:00
action_help: Grant access right to users (everyone by default)
2012-12-01 15:33:56 +01:00
arguments:
2013-03-03 15:54:24 +01:00
apps:
2012-10-22 21:09:42 +02:00
nargs: "+"
2012-12-01 15:33:56 +01:00
-u:
2013-03-03 15:54:24 +01:00
full: --users
2012-10-22 21:09:42 +02:00
nargs: "+"
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### app_removeaccess() TODO: Write help
2012-12-01 15:33:56 +01:00
removeaccess:
2012-10-22 21:09:42 +02:00
action_help: Revoke access right to users (everyone by default)
2012-12-01 15:33:56 +01:00
arguments:
2013-03-03 17:45:31 +01:00
apps:
2012-10-22 21:09:42 +02:00
nargs: "+"
2012-12-01 15:33:56 +01:00
-u:
2013-03-03 17:45:31 +01:00
full: --users
2012-10-22 21:09:42 +02:00
nargs: "+"
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
#############################
# Repository #
#############################
2012-12-01 15:33:56 +01:00
repo:
2012-10-22 21:09:42 +02:00
category_help: Manage app repositories
2012-12-01 15:33:56 +01:00
actions:
2012-10-22 20:52:15 +02:00
### repo_list()
2012-12-01 15:33:56 +01:00
list:
2012-10-22 21:09:42 +02:00
action_help: List repositories
2012-12-01 15:33:56 +01:00
arguments:
-f:
2012-10-22 21:09:42 +02:00
full: --filter
help: LDAP filter used to search
2012-12-01 15:33:56 +01:00
-l:
2012-10-22 21:09:42 +02:00
full: --limit
2012-12-01 15:33:56 +01:00
help: Maximum number of repository fetched
-o:
2012-10-22 21:09:42 +02:00
full: --offset
2012-12-01 15:33:56 +01:00
help: Starting number for repository fetching
2012-10-22 20:52:15 +02:00
### repo_add()
2012-12-01 15:33:56 +01:00
add:
2012-10-22 21:09:42 +02:00
action_help: Add app repository
2012-12-01 15:33:56 +01:00
arguments:
url:
2012-10-22 21:09:42 +02:00
help: URL of the repository
2012-12-01 15:33:56 +01:00
-n:
2012-10-22 21:09:42 +02:00
full: --name
help: Unique name of the repository
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### repo_remove()
2012-12-01 15:33:56 +01:00
remove:
2012-10-22 21:09:42 +02:00
action_help: Remove repository
2012-12-01 15:33:56 +01:00
arguments:
repo:
2012-10-22 21:09:42 +02:00
help: Name or URL of the repository
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### repo_update()
2012-12-01 15:33:56 +01:00
update:
2012-10-22 21:09:42 +02:00
action_help: Update app list from the repositories
2012-10-22 20:52:15 +02:00
#############################
# Monitor #
#############################
2012-12-01 15:33:56 +01:00
monitor:
2012-10-22 21:09:42 +02:00
category_help: Monitoring functions
2012-12-01 15:33:56 +01:00
actions:
2012-10-22 20:52:15 +02:00
### monitor_info()
2012-12-01 15:33:56 +01:00
info:
2012-10-22 21:09:42 +02:00
action_help: Check System
2012-12-01 15:33:56 +01:00
arguments:
-m:
2012-10-22 21:09:42 +02:00
full: --memory
help: Check Memory
action: store_true
2012-12-01 15:33:56 +01:00
-c:
2012-10-22 21:09:42 +02:00
full: --cpu
help: Check CPU
action: store_true
2012-12-01 15:33:56 +01:00
-d:
2012-10-22 21:09:42 +02:00
full: --disk
help: Check Disk
action: store_true
2012-12-01 15:33:56 +01:00
-i:
2012-10-22 21:09:42 +02:00
full: --ifconfig
help: Show Ip and MAC Adress
2012-10-22 21:09:42 +02:00
action: store_true
2012-12-01 15:33:56 +01:00
-u:
2012-10-22 21:09:42 +02:00
full: --uptime
help: Show Uptime
action: store_true
-p:
full: --public
help: Show IP public
action: store_true
2012-10-28 15:55:35 +01:00
process:
action_help: Check Process
arguments:
2012-12-01 15:33:56 +01:00
-e:
2012-10-28 15:55:35 +01:00
full: --enable
help: Enable process
metavar: PROCESS
2012-10-28 15:55:35 +01:00
-d:
full: --disable
help: Disable process
metavar: PROCESS
2012-10-28 15:55:35 +01:00
--start:
help: Start process
metavar: PROCESS
2012-10-28 15:55:35 +01:00
--stop:
help: Stop process
metavar: PROCESS
2012-10-28 15:55:35 +01:00
-c:
full: --check
help: Check process
metavar: PORT
2012-10-28 15:55:35 +01:00
-i:
full: --info
help: Process info
2012-10-22 21:09:42 +02:00
action: store_true
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
#############################
# Firewall #
#############################
2012-12-01 15:33:56 +01:00
firewall:
2012-10-22 21:09:42 +02:00
category_help: Manage firewall rules
2012-12-01 15:33:56 +01:00
actions:
2012-10-22 20:52:15 +02:00
### firewall_list()
2012-12-01 15:33:56 +01:00
list:
2012-10-22 21:09:42 +02:00
action_help: List all firewall rules
2013-06-15 14:37:27 +02:00
2012-12-12 19:20:09 +01:00
### firewall_reload()
reload:
action_help: Reload all firewall rules
arguments:
-u:
full: --upnp
help: upnp
action: store_true
2012-10-22 20:52:15 +02:00
### firewall_allow()
2012-12-01 15:33:56 +01:00
allow:
2012-10-22 21:09:42 +02:00
action_help: Allow connection port/protocol
2012-12-01 15:33:56 +01:00
arguments:
port:
2012-10-22 21:09:42 +02:00
help: Port to open
2012-12-01 15:33:56 +01:00
protocol:
2012-10-22 21:09:42 +02:00
help: Protocol associated with port
2012-12-01 15:33:56 +01:00
choices:
- UDP
- TCP
2012-10-22 21:09:42 +02:00
- Both
2012-12-13 11:36:09 +01:00
-i:
full: --ipv6
help: ipv6
action: store_true
-u:
full: --upnp
help: upnp
action: store_true
2012-12-12 17:40:02 +01:00
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
### firewall_disallow()
2012-12-01 15:33:56 +01:00
disallow:
2012-10-22 21:09:42 +02:00
action_help: Disallow connection
2012-12-01 15:33:56 +01:00
arguments:
port:
help: Port to open
protocol:
help: Protocol associated with port
choices:
- UDP
- TCP
- Both
-i:
full: --ipv6
help: ipv6
action: store_true
-u:
full: --upnp
help: upnp
action: store_true
2012-12-01 15:33:56 +01:00
2012-10-22 20:52:15 +02:00
2013-03-13 09:34:29 +01:00
### firewall_installupnp()
installupnp:
2013-03-11 23:07:16 +01:00
action_help: Add upnp cron
2013-03-13 09:34:29 +01:00
### firewall_removeupnp()
removeupnp:
2013-03-11 23:07:16 +01:00
action_help: Remove upnp cron
2013-03-15 14:18:30 +01:00
### firewall_stop()
stop:
action_help: Stop iptables and ip6tables
2013-04-09 22:25:43 +02:00
2013-04-09 22:37:35 +02:00
### firewall_checkupnp()
2013-04-09 22:34:33 +02:00
checkupnp:
2013-04-09 22:25:43 +02:00
action_help: check if UPNP is install or not (0 yes 1 no)
2013-06-16 14:41:29 +02:00
#############################
# DynDNS #
#############################
dyndns:
category_help: Subscribe and Update DynDNS Hosts
actions:
### dyndns_subscribe()
subscribe:
action_help: Subscribe to a DynDNS service
arguments:
2013-06-16 14:33:00 +02:00
--subscribe-host:
2013-06-16 14:41:29 +02:00
help: Dynette HTTP API to subscribe to
2013-06-16 14:33:00 +02:00
default: "dyndns.yunohost.org"
2013-06-16 14:41:29 +02:00
-d:
full: --domain
help: Full domain to subscribe with
-k:
full: --key
help: Public DNS key
### dyndns_update()
update:
action_help: Update IP on DynDNS platform
arguments:
2013-06-16 14:33:00 +02:00
--dyn-host:
2013-06-16 14:41:29 +02:00
help: Dynette DNS server to inform
2013-06-16 14:33:00 +02:00
default: "dynhost.yunohost.org"
2013-06-16 14:41:29 +02:00
-d:
full: --domain
help: Full domain to subscribe with
-k:
full: --key
help: Public DNS key
-i:
full: --ip
help: IP address to send
### dyndns_installcron()
installcron:
action_help: Install IP update cron
### dyndns_removecron()
removecron:
action_help: Remove IP update cron
2012-10-22 20:52:15 +02:00
#############################
# Tools #
#############################
2012-12-01 15:33:56 +01:00
tools:
2012-10-22 21:09:42 +02:00
category_help: Specific tools
2012-12-01 15:33:56 +01:00
actions:
2012-10-22 20:52:15 +02:00
2012-10-26 15:26:50 +02:00
### tools_ldapinit()
2012-12-01 15:33:56 +01:00
ldapinit:
2012-10-26 15:26:50 +02:00
action_help: YunoHost LDAP initialization
2012-10-27 17:06:43 +02:00
### tools_adminpw()
2012-12-01 15:33:56 +01:00
adminpw:
2012-10-27 17:06:43 +02:00
action_help: Change admin password
2012-12-01 15:33:56 +01:00
arguments:
-o:
2012-10-27 17:06:43 +02:00
full: --old-password
2012-11-09 18:04:15 +01:00
ask: "Actual admin password"
password: yes
2012-10-27 17:06:43 +02:00
-n:
full: --new-password
2012-11-09 18:04:15 +01:00
ask: "New admin password"
password: yes
2012-10-27 17:06:43 +02:00
### tools_maindomain()
maindomain:
action_help: Main domain change tool
2012-12-01 15:33:56 +01:00
arguments:
2012-10-27 17:06:43 +02:00
-o:
full: --old-domain
2012-11-09 18:04:15 +01:00
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
2012-10-27 17:06:43 +02:00
-n:
full: --new-domain
2012-11-09 18:04:15 +01:00
ask: "New main domain"
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
2012-10-27 17:06:43 +02:00
2012-10-26 15:26:50 +02:00
### tools_postinstall()
2012-12-01 15:33:56 +01:00
postinstall:
2012-10-26 15:26:50 +02:00
action_help: YunoHost post-install
2012-12-01 15:33:56 +01:00
arguments:
-d:
2012-10-26 15:26:50 +02:00
full: --domain
help: YunoHost main domain
2012-11-09 18:04:15 +01:00
ask: "Main domain"
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
2012-10-26 15:26:50 +02:00
-p:
full: --password
help: YunoHost admin password
2012-11-09 18:04:15 +01:00
ask: "New admin password"
password: yes
2013-06-16 14:41:29 +02:00
--dyndns:
help: Subscribe domain to a DynDNS service
action: store_true