Skip to content

Commit

Permalink
Use bash command names
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexagod committed Jan 6, 2025
1 parent 2673356 commit 6aee2c9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 48 deletions.
13 changes: 1 addition & 12 deletions src/shell/commands/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('<src>', 'file or directory to be copied')
// .argument('<dst>', '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('<src>', 'file or directory to be copied')
.argument('<dst>', 'destination to copy file or directory to')
Expand Down
2 changes: 1 addition & 1 deletion src/shell/commands/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
14 changes: 1 addition & 13 deletions src/shell/commands/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,8 @@ export default class ListCommand extends SolidCommand {
this.programopts = program.opts();
let urlParam = this.mayUseCurrentContainer ? '[url]' : '<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')
Expand Down
15 changes: 2 additions & 13 deletions src/shell/commands/mv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('<src>', 'file or directory to be moved')
// .argument('<dst>', '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('<src>', 'file or directory to be moved')
.argument('<dst>', 'destination of the move')
Expand Down
10 changes: 1 addition & 9 deletions src/shell/commands/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('<urls...>', '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('<urls...>', '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?
Expand Down

0 comments on commit 6aee2c9

Please sign in to comment.