mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-02 15:17:24 -04:00
Re-write argument parsing, implement skeleton of copy functionality
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package offline
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func CopyField(targetLocation string, field rune) {
|
||||
if isFile, _ := TargetIsFile(targetLocation, true); isFile {
|
||||
//decryptedEntry := DecryptGPG(targetLocation)
|
||||
// TODO implement clipboard support (maybe use third-party library?)
|
||||
fmt.Println("In the future, this will copy " + string(field))
|
||||
} else {
|
||||
fmt.Println(AnsiError + "Failed to read \"" + targetLocation + "\" - it is a directory" + AnsiReset)
|
||||
}
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
func clipClear() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user