s6
S6
Sparrow6 command line client and plugin manager.
Usage
help:
s6 --helpactions:
s6 $action|$options $thingPlugins
Sparrow plugins - are portable Sparrow tasks.
update index
s6 --index-updateupload plugin
s6 --upload
s6 --install --force $plugin # forceful upload, even if a higher version is installedplugin info
s6 --plg-info $pluginuninstall plugin
s6 --uninstall $pluginrun plugin
Run plugin
s6 --plg-run $pluginFor example:
s6 --plg-run timetestRun plugin with parameters:
s6 --plg-run $plugin@param1=value1,param2=value2For example:
s6 --plg-run bash@command=uptime,debug=1
sudo env PATH=$PATH env SP6_REPO=$SP6_REPO s6 --plg-run user@name=sparrow,action=createTo run multiple plugins use + sign:
s6 --plg-run directory@path=/tmp/foo,action=create+file@content='hello world',target=/tmp/foo/hello.txt
sudo env PATH=$PATH env SP6_REPO=$SP6_REPO s6 --plg-run group@name=brirds,\
action=create+user@name=sparrow,password=123456,groups=brirds,action=createshow plugin manual
s6 --plg-man $pluginRepository
Repository is a storage for sparrow plugins. Repository allows to search and installs plugins. More about sparrow repositories read at documentation/repository.
Repository commands:
show repository info
s6 --repo-infoinitialize local repository
s6 --repo-init /path/to/repo/rootModules
Module is a collection of Sparrow tasks run sequentially.
run module
s6 --module-run $module@param1=value1,param2=value2For example:
s6 --module-run Archive@source=/home/melezhik/archive.tar.gz,target=/tmp/foo2,verbose=1Sparrow tasks
Sparrow tasks are scripts written on Sparrow compatible languages.
sparrow tasks list
s6 --task-listList tasks limited by subfolder:
s6 --task-list tasks/folderList tasks filtered by Raku regexp:
s6 --task-list "regexp"For example:
s6 --task-list 'foo || bar || baz'run sparrow task
s6 --task-run task/pathYou can pass parameters and run multiple tasks as you do with sparrow plugins:
s6 --task-run task/path@param1=value1,param2=value2
s6 --task-run task/path1+task/path2show sparrow task
s6 --task-cat task/pathdelete sparrow task
s6 --sparrow-del task/pathRaku tasks
Raku tasks are high level scenarios to run Sparrow tasks written on Sparrow compatible languages.
raku tasks list
s6 --rt-listrun raku task
s6 --rt-run task/pathcreate/update raku task
s6 --rt-set task/pathshow raku task
s6 --rt-cat task/pathdelete raku task
s6 --rt-del task/pathoptions
--verbose
Enable verbose mode, adds some low detail messages.
--debug
Enable debug mode, even more messages.
Author
Alexey Melezhik
Thanks to
God as the One Who inspires me in my life!