]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - cli/surfer.js
protect _admin/
[perso/Immae/Projets/Nodejs/Surfer.git] / cli / surfer.js
index d906d6237ed5399c145d6ccdd2015b51eb7e3675..4c096d3bb18ab200a66de198f2fb8b4b2fa954c1 100755 (executable)
@@ -10,20 +10,23 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
 
 program.version('0.1.0');
 
-program.command('login')
+program.command('login <url>')
     .description('Login to server')
     .action(actions.login);
 
 program.command('put <file> [files...]')
-    .description('Put a file')
+    .option('-a --all', 'Also include hidden files and folders.', false)
+    .description('Put a file, last argument is destination if provided')
     .action(actions.put);
 
-program.command('get')
-    .description('Get a file or directory')
+program.command('get [file]')
+    .description('Get a file or directory listing')
     .action(actions.get);
 
-program.command('del')
-    .description('Delete a file')
+program.command('del <file>')
+    .option('-r --recursive', 'Recursive delete directories.', false)
+    .option('-d --dry-run', 'Only list files to delete.', false)
+    .description('Delete a file or directory')
     .action(actions.del);
 
 program.parse(process.argv);