File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 6
6
"fmt"
7
7
"io/ioutil"
8
8
"log"
9
+ "os"
9
10
"strings"
10
11
11
12
"github.com/spf13/cobra"
@@ -180,6 +181,7 @@ var getCmd = &cobra.Command{
180
181
if err != nil {
181
182
log .Fatal (err )
182
183
}
184
+ os .Remove (filename )
183
185
184
186
fmt .Println (string (bytesRead ))
185
187
} else {
@@ -194,6 +196,7 @@ var getCmd = &cobra.Command{
194
196
if err != nil {
195
197
log .Fatal (err )
196
198
}
199
+ os .Remove (filename )
197
200
198
201
book := make (map [string ]interface {})
199
202
book ["name" ] = c .Name ()
@@ -215,6 +218,7 @@ var getCmd = &cobra.Command{
215
218
if err != nil {
216
219
log .Fatal (err )
217
220
}
221
+ os .Remove (filename )
218
222
219
223
fmt .Println (string (bytesRead ))
220
224
} else {
@@ -230,6 +234,7 @@ var getCmd = &cobra.Command{
230
234
if err != nil {
231
235
log .Fatal (err )
232
236
}
237
+ os .Remove (filename )
233
238
234
239
fmt .Println (string (bytesRead ))
235
240
} else {
@@ -245,6 +250,7 @@ var getCmd = &cobra.Command{
245
250
if err != nil {
246
251
log .Fatal (err )
247
252
}
253
+ os .Remove (filename )
248
254
249
255
fmt .Println (string (bytesRead ))
250
256
} else {
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ var versionCmd = &cobra.Command{
14
14
Use : "version" ,
15
15
Short : "Print the version number of papeer" ,
16
16
Run : func (cmd * cobra.Command , args []string ) {
17
- fmt .Println ("papeer v0.8.3 " )
17
+ fmt .Println ("papeer v0.8.4 " )
18
18
},
19
19
}
You can’t perform that action at this time.
0 commit comments