more work on cli...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-01-25 03:34:03 +03:00
parent feb62c9dd8
commit fe6bdf65e5
2 changed files with 21 additions and 6 deletions

View File

@ -195,6 +195,16 @@ var CLIActions = actions.Actions({
]) }],
// XXX do a better set of examples...
cliExamples: [[
'Create/init index in current directory',
'$ $SCRIPTNAME init',
'',
'Export 500px previews from current index to ./preview directory',
'$ $SCRIPTNAME export from=. to=./previews --image-size=500',
]],
// Startup commands...
//
cliStartREPL: ['- System/CLI/start CLI interpreter',
@ -725,6 +735,11 @@ module.CLI = core.ImageGridFeatures.Feature({
version: pkg.version,
license: pkg.license,
// examples...
examples: CLIActions.cliExamples ?
CLIActions.cliExamples.flat()
: null,
'-verbose': {
doc: 'enable (very) verbose output',
handler: function(){

View File

@ -1562,9 +1562,9 @@
}
},
"node_modules/ig-argv": {
"version": "2.16.9",
"resolved": "https://registry.npmjs.org/ig-argv/-/ig-argv-2.16.9.tgz",
"integrity": "sha512-YVB54ckpJPxvnHC/yTLj1nlklarICU5OHHlbszb6Wm+ovzoVWZmQLb2naMUzEHA7yuwoKDnHMndEnmwlJuY/mg==",
"version": "2.16.10",
"resolved": "https://registry.npmjs.org/ig-argv/-/ig-argv-2.16.10.tgz",
"integrity": "sha512-jc0oD19UWpUeZsmsmFIntwdLi57E5KaaIEO8f3wWl3S0pc2g6tBj2Q36xXpOc0Pg+OfQZ0HGSoIhHHy0uP1O2A==",
"dependencies": {
"ig-object": "^5.4.16"
}
@ -4520,9 +4520,9 @@
}
},
"ig-argv": {
"version": "2.16.9",
"resolved": "https://registry.npmjs.org/ig-argv/-/ig-argv-2.16.9.tgz",
"integrity": "sha512-YVB54ckpJPxvnHC/yTLj1nlklarICU5OHHlbszb6Wm+ovzoVWZmQLb2naMUzEHA7yuwoKDnHMndEnmwlJuY/mg==",
"version": "2.16.10",
"resolved": "https://registry.npmjs.org/ig-argv/-/ig-argv-2.16.10.tgz",
"integrity": "sha512-jc0oD19UWpUeZsmsmFIntwdLi57E5KaaIEO8f3wWl3S0pc2g6tBj2Q36xXpOc0Pg+OfQZ0HGSoIhHHy0uP1O2A==",
"requires": {
"ig-object": "^5.4.16"
},