minio/cmd/new-cmd
2015-01-01 17:31:51 -08:00
..
.gitignore Add Diskattrmap, Scsiattrmap for probed scsi devices 2014-12-30 02:37:47 -08:00
formatter.go A full restructure 2014-12-29 21:22:26 -08:00
new-cmd-flags.go Remove template files, make them const strings instead 2015-01-01 17:31:51 -08:00
new-cmd.go Remove template files, make them const strings instead 2015-01-01 17:31:51 -08:00
README.md Add Diskattrmap, Scsiattrmap for probed scsi devices 2014-12-30 02:37:47 -08:00
templates.go Remove template files, make them const strings instead 2015-01-01 17:31:51 -08:00

Introduction

new-cmd is a stub builder for new commands,options on top of codegangsta/cli,

Idea behind providing a simple tool for rapid prototyping and encouraging new contributors to the project

Usage

You just need to set its command name and options:

$ new-cmd --options option1,option2,option3 --usage "This command is best" [commandname]

Generates three files [commandname].go, [commandname]-options.go, [commandname].md respectively

Example

If you want to start to building bucket command which has options get, put, list:

$ new-cmd --options get,put,list --usage "Bucket operations" bucket
$ ls bucket/
bucket-options.go  bucket.go  bucket.md