diff --git a/src/shell/commands/copy.ts b/src/shell/commands/copy.ts index 2039850..c99a617 100644 --- a/src/shell/commands/copy.ts +++ b/src/shell/commands/copy.ts @@ -10,19 +10,8 @@ export default class CopyCommand extends SolidCommand { public addCommand(program: Command) { this.programopts = program.opts(); - // program - // .command('cp') - // .description('Utility to copy files from and to both the local file system and remote Solid pod.') - // .argument('', 'file or directory to be copied') - // .argument('', 'destination to copy file or directory to') - // .option('-a, --all', 'Copy .acl files in recursive directory copies') - // .option('-i, --interactive-override', 'Interactive confirmation prompt when overriding existing files') - // .option('-n, --no-override', 'Do not override existing files') - // .option('-v, --verbose', 'Log all read and write operations') - // .action(this.executeCommand) - program - .command('copy') + .command('cp') .description('Copy resources and containers between remote sources or the local file system') .argument('', 'file or directory to be copied') .argument('', 'destination to copy file or directory to') diff --git a/src/shell/commands/fetch.ts b/src/shell/commands/fetch.ts index 2d50432..fbfbcdd 100644 --- a/src/shell/commands/fetch.ts +++ b/src/shell/commands/fetch.ts @@ -19,7 +19,7 @@ export default class FetchCommand extends SolidCommand { // }) program - .command('fetch') + .command('curl') .description('Fetch a resource') .argument(urlParam, 'file to be fetched') .option('-v, --verbose', 'Write out full response and all headers') diff --git a/src/shell/commands/list.ts b/src/shell/commands/list.ts index 5607b66..1be0d50 100644 --- a/src/shell/commands/list.ts +++ b/src/shell/commands/list.ts @@ -13,20 +13,8 @@ export default class ListCommand extends SolidCommand { this.programopts = program.opts(); let urlParam = this.mayUseCurrentContainer ? '[url]' : '' - // program - // .command('ls') - // .description('Utility to view files in container on remote Solid pod.') - // .argument(urlParam, 'URL of container to be listed') - // .option('-a, --all', 'List all files including acl files') - // .option('-f, --full', 'List files with their full uri') - // .option('-l, --long', 'List in long format') - // .option('-v, --verbose', '') - // .action(async (url: string, options: any) => { - // await this.executeCommand(url, options) - // }) - program - .command('list') + .command('ls') .description('List files in a container') .argument(urlParam, 'URL of container to be listed') .option('-a, --all', 'List all files including acl files') diff --git a/src/shell/commands/mv.ts b/src/shell/commands/mv.ts index 740c043..9b61df5 100644 --- a/src/shell/commands/mv.ts +++ b/src/shell/commands/mv.ts @@ -9,20 +9,9 @@ export default class MkdirCommand extends SolidCommand { public addCommand(program: Command) { this.programopts = program.opts(); - - // program - // .command('mv') - // .description('Utility to move files or containers on remote Solid pod.') - // .argument('', 'file or directory to be moved') - // .argument('', 'destination of the move') - // .option('-a, --all', 'Move .acl files when moving directories recursively') - // .option('-i, --interactive-override', 'Interactive confirmation prompt when overriding existing files') - // .option('-n, --no-override', 'Do not override existing files') - // .option('-v, --verbose', 'Log all operations') - // .action(this.executeCommand) - + program - .command('move') + .command('mv') .description('Move resources and containers between remote sources or the local file system') .argument('', 'file or directory to be moved') .argument('', 'destination of the move') diff --git a/src/shell/commands/remove.ts b/src/shell/commands/remove.ts index 6c2a1bd..c12ce6f 100644 --- a/src/shell/commands/remove.ts +++ b/src/shell/commands/remove.ts @@ -9,17 +9,9 @@ export default class RemoveCommand extends SolidCommand { public addCommand(program: Command) { this.programopts = program.opts(); - - // program - // .command('rm') - // .description('Utility to remove files or container on remote Solid pod.') - // .argument('', 'URL of container to be listed') - // .option('-r, --recursive', 'Recursively removes all files in given container (.acl files are removed on resource removal)') // Should this be default? - // .option('-v, --verbose', 'Log all operations') // Should this be default? - // .action(this.executeCommand) program - .command('remove') + .command('rm') .description('Remove files and container') .argument('', 'URL of container to be listed') .option('-r, --recursive', 'Recursively removes all files in given container (.acl files are removed on resource removal)') // Should this be default?