From b22a7b97d2a239c188f5874345e7a72a7a1aac8a Mon Sep 17 00:00:00 2001 From: Kloadut Date: Sun, 14 Oct 2012 20:56:04 +0200 Subject: [PATCH] Repo functions --- parse_args | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/parse_args b/parse_args index 15e20ef8..8950b530 100755 --- a/parse_args +++ b/parse_args @@ -299,7 +299,7 @@ action_map = { ### app_install() TODO: Write help 'install' : { 'action_help' : _("Install apps"), - 'connections' : ['ldap'], + 'connections' : ['ldap', 'dns'], 'arguments' : { 'appname' : { 'nargs' : '+', @@ -324,7 +324,7 @@ action_map = { ### app_remove() TODO: Write help 'remove' : { 'action_help' : _("Remove app"), - 'connections' : ['ldap'], + 'connections' : ['ldap', 'dns'], 'arguments' : { 'app' : { 'help' : _("App(s) to delete"), @@ -390,7 +390,7 @@ action_map = { ### repo_list() 'list' : { 'action_help' : _("List repositories"), - 'connections' : ['ldap'], + 'connections' : ['repo'], 'arguments' : { '-f' : { 'full' : '--filter', @@ -406,6 +406,32 @@ action_map = { }, } }, + 'add' : { + 'action_help' : _("Add app repository"), + 'connections' : ['repo'], + 'arguments' : { + 'url' : { + 'help' : _("URL of the repository"), + }, + '-n' : { + 'full' : '--name', + 'help' : _("Unique name of the repository"), + }, + } + }, + 'remove' : { + 'action_help' : _("Remove repository"), + 'connections' : ['repo'], + 'arguments' : { + 'repo' : { + 'help' : _("Name or URL of the repository"), + }, + } + }, + 'update' : { + 'action_help' : _("Update app list from the repositories"), + 'connections' : ['repo'], + }, } }, 'monitor' : {