Skip to content

Commit

Permalink
Add -with-path flag for -file-put and -file-get
Browse files Browse the repository at this point in the history
  • Loading branch information
undefinedopcode committed Feb 15, 2018
1 parent 473401e commit 7118703
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ var adornedCP = flag.Bool("adorned", true, "Extract files named similar to CP")
var shell = flag.Bool("shell", false, "Start interactive mode")
var shellBatch = flag.String("shell-batch", "", "Execute shell command(s) from file and exit")
var withDisk = flag.String("with-disk", "", "Perform disk operation (-file-extract,-file-put,-file-delete)")
var withPath = flag.String("with-path", "", "Target path for disk operation (-file-extract,-file-put,-file-delete)")
var fileExtract = flag.String("file-extract", "", "File to delete from disk (-with-disk)")
var filePut = flag.String("file-put", "", "File to put on disk (-with-disk)")
var fileDelete = flag.String("file-delete", "", "File to delete (-with-disk)")
Expand Down Expand Up @@ -130,6 +131,11 @@ func main() {
}
commandVolumes[0] = dsk
commandTarget = 0

if *withPath != "" {
shellProcess("prefix " + *withPath)
}

switch {
case *fileExtract != "":
shellProcess("extract " + *fileExtract)
Expand Down

0 comments on commit 7118703

Please sign in to comment.