Repo functions

This commit is contained in:
Kloadut 2012-10-14 20:56:04 +02:00
parent a6a58445cb
commit b22a7b97d2

View file

@ -299,7 +299,7 @@ action_map = {
### app_install() TODO: Write help ### app_install() TODO: Write help
'install' : { 'install' : {
'action_help' : _("Install apps"), 'action_help' : _("Install apps"),
'connections' : ['ldap'], 'connections' : ['ldap', 'dns'],
'arguments' : { 'arguments' : {
'appname' : { 'appname' : {
'nargs' : '+', 'nargs' : '+',
@ -324,7 +324,7 @@ action_map = {
### app_remove() TODO: Write help ### app_remove() TODO: Write help
'remove' : { 'remove' : {
'action_help' : _("Remove app"), 'action_help' : _("Remove app"),
'connections' : ['ldap'], 'connections' : ['ldap', 'dns'],
'arguments' : { 'arguments' : {
'app' : { 'app' : {
'help' : _("App(s) to delete"), 'help' : _("App(s) to delete"),
@ -390,7 +390,7 @@ action_map = {
### repo_list() ### repo_list()
'list' : { 'list' : {
'action_help' : _("List repositories"), 'action_help' : _("List repositories"),
'connections' : ['ldap'], 'connections' : ['repo'],
'arguments' : { 'arguments' : {
'-f' : { '-f' : {
'full' : '--filter', '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' : { 'monitor' : {