Skip to content

Commit

Permalink
fix delete/zip from command line
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-zucker committed Aug 4, 2021
1 parent 3b99c74 commit 7e334df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-shell",
"version": "2.0.1",
"version": "2.0.2",
"main": "sol",
"repository": "https://github.com/jeff-zucker/solid-shell.git",
"author": "Jeff Zucker",
Expand Down
10 changes: 5 additions & 5 deletions sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ program
.description('show headers for a file or folder')
.action( async (URL) => {
if( program.opts().login ) await sol.runSol("login")
sol.runSol("head",URL).then(()=>{
sol.runSol("head",[URL]).then(()=>{
},err=>console.log(err));
});
program
.command('get <URL>')
.description('show contents of a file or folder')
.action( async (URL) => {
if( program.opts().login ) await sol.runSol("login")
sol.runSol("get",URL).then(()=>{
sol.runSol("get",[URL]).then(()=>{
},err=>console.log(err));
});
program
Expand All @@ -66,23 +66,23 @@ program
.description('delete file or recursively delete folder')
.action( async (URL) => {
if( program.opts().login ) await sol.runSol("login")
sol.runSol("delete",URL).then(()=>{
sol.runSol("delete",[URL]).then(()=>{
},err=>console.log(err));
});
program
.command('zip <folderURL> <zipFileURL>')
.description('create a zip archive')
.action( async (folderURL,zipFileURL) => {
if( program.opts().login ) await sol.runSol("login")
sol.runSol("zip",folderURL,zipFileURL).then(()=>{
sol.runSol("zip",[folderURL,zipFileURL]).then(()=>{
},err=>console.log(err));
});
program
.command('unzip <zipFileURL> <folderURL>')
.description('extract a zip archive')
.action( async (zipFileURL,folderURL) => {
if( program.opts().login ) await sol.runSol("login")
sol.runSol("unzip",zipFileURL,folderURL).then(()=>{
sol.runSol("unzip",[zipFileURL,folderURL]).then(()=>{
},err=>console.log(err));
});
program
Expand Down

0 comments on commit 7e334df

Please sign in to comment.