Replies: 4 comments 2 replies
-
Looks very good. I was thinking of building an upgrade role on top of it. |
Beta Was this translation helpful? Give feedback.
-
100% agree, that's very good idea to use |
Beta Was this translation helpful? Give feedback.
-
Ho. I've forgotten to write the app module specs but this should be something simple like params: |
Beta Was this translation helpful? Give feedback.
-
hello there ! Regards. |
Beta Was this translation helpful? Give feedback.
-
Hello there!
I've been thinking about modules related to nc apps management, as i think they should be one of the easiest to start development.
I've been exploring the occ cli to see the extent of the possibilities and make some module specs.
Here are my notes:, feel free to comment or give ideas.
occ app modules
app_infos - gathering infos
list of apps, status (enabled, disabled)
occ app:list --output=json
opt:
--shipped=true
to list state only of shipped apps (interesting as a metadata)config info
system level
occ config:list <appname>
user level
occ user:setting <userid> <appname>
this should probably not be in the app generic module
module specs
A simple
name
optional parameter to return info for a specific applicationThe data returned should be things like
managing app - install/update/remove/en-disable
installation and removal
pretty straight forward :
occ app:install <appname>
opts:
occ app:remove <appname>
opts:
note : installing is possible with tgz archive, but this is an entire different process
Will do later
check for updates
one app
no json output available
occ app:update --showonly <appname>
<appname> new version available: <version>
all apps
occ app:update --showonly --all
<appname> new version available: <version>
update apps
For diff mode, if it can be implemented, gathering current version before is required.
one app
occ app:update <appname>
return
<appname> new version available: <version>
and proceed to updateelse return nothing and rc 0
return
<appname> updated
and rc 0use option
--quiet
to suppress outputall apps
occ app:update --all
but because of the shell return, or the lack of (with
--quiet
opt),the module should list updates before running any command
configuring apps
should be used by the config module
Beta Was this translation helpful? Give feedback.
All reactions