summaryrefslogtreecommitdiff
path: root/vendor/github.com/jessevdk/go-flags/examples/add.go
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2017-03-19 15:19:42 +0000
committerFelix Hanley <felix@userspace.com.au>2017-03-19 15:19:42 +0000
commit8a541d499b6f117cd3a81e475ee779ba60fc0637 (patch)
tree7b3b5326235725ab93056b5ff4637d987fb0a7b6 /vendor/github.com/jessevdk/go-flags/examples/add.go
parentfe847b2d01060044274d20d2c35ae01a684d4ee3 (diff)
downloadcrjw-maps-master.tar.gz
crjw-maps-master.tar.bz2
use golang dep tool for depsHEADmaster
Diffstat (limited to 'vendor/github.com/jessevdk/go-flags/examples/add.go')
-rw-r--r--vendor/github.com/jessevdk/go-flags/examples/add.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/vendor/github.com/jessevdk/go-flags/examples/add.go b/vendor/github.com/jessevdk/go-flags/examples/add.go
deleted file mode 100644
index 57d8f23..0000000
--- a/vendor/github.com/jessevdk/go-flags/examples/add.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package main
-
-import (
- "fmt"
-)
-
-type AddCommand struct {
- All bool `short:"a" long:"all" description:"Add all files"`
-}
-
-var addCommand AddCommand
-
-func (x *AddCommand) Execute(args []string) error {
- fmt.Printf("Adding (all=%v): %#v\n", x.All, args)
- return nil
-}
-
-func init() {
- parser.AddCommand("add",
- "Add a file",
- "The add command adds a file to the repository. Use -a to add all files.",
- &addCommand)
-}