mirror of
https://github.com/NohamR/papeer.git
synced 2026-05-25 20:00:47 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99b7d16de7 |
@@ -6,6 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
@@ -180,6 +181,7 @@ var getCmd = &cobra.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
os.Remove(filename)
|
||||||
|
|
||||||
fmt.Println(string(bytesRead))
|
fmt.Println(string(bytesRead))
|
||||||
} else {
|
} else {
|
||||||
@@ -194,6 +196,7 @@ var getCmd = &cobra.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
os.Remove(filename)
|
||||||
|
|
||||||
book := make(map[string]interface{})
|
book := make(map[string]interface{})
|
||||||
book["name"] = c.Name()
|
book["name"] = c.Name()
|
||||||
@@ -215,6 +218,7 @@ var getCmd = &cobra.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
os.Remove(filename)
|
||||||
|
|
||||||
fmt.Println(string(bytesRead))
|
fmt.Println(string(bytesRead))
|
||||||
} else {
|
} else {
|
||||||
@@ -230,6 +234,7 @@ var getCmd = &cobra.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
os.Remove(filename)
|
||||||
|
|
||||||
fmt.Println(string(bytesRead))
|
fmt.Println(string(bytesRead))
|
||||||
} else {
|
} else {
|
||||||
@@ -245,6 +250,7 @@ var getCmd = &cobra.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
os.Remove(filename)
|
||||||
|
|
||||||
fmt.Println(string(bytesRead))
|
fmt.Println(string(bytesRead))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -14,6 +14,6 @@ var versionCmd = &cobra.Command{
|
|||||||
Use: "version",
|
Use: "version",
|
||||||
Short: "Print the version number of papeer",
|
Short: "Print the version number of papeer",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
fmt.Println("papeer v0.8.3")
|
fmt.Println("papeer v0.8.4")
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user