You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
minio/cmd/new-cmd
Harshavardhana 0e4a26e3b4 Add Diskattrmap, Scsiattrmap for probed scsi devices 10 years ago
..
templates
.gitignore Add Diskattrmap, Scsiattrmap for probed scsi devices 10 years ago
README.md Add Diskattrmap, Scsiattrmap for probed scsi devices 10 years ago
formatter.go
new-cmd-flags.go Add Diskattrmap, Scsiattrmap for probed scsi devices 10 years ago
new-cmd.go Add Diskattrmap, Scsiattrmap for probed scsi devices 10 years ago

README.md

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