minio/cmd/minio-cli/README.md

26 lines
663 B
Markdown
Raw Normal View History

2014-12-18 02:18:02 -08:00
## Introduction
2014-12-20 09:09:35 -08:00
`minio-cli` is a stub builder for new commands,options on top of [codegangsta/cli](https://github.com/codegangsta/cli),
2014-12-18 02:18:02 -08:00
2014-12-20 09:09:35 -08:00
Idea behind providing a simple tool for rapid prototyping and encouraging new contributors to the project
2014-12-18 02:18:02 -08:00
## Usage
You just need to set its command name and options:
2014-12-18 02:18:02 -08:00
```bash
$ minio-cli -options option1,option2,option3 [command]
2014-12-18 02:18:02 -08:00
```
2014-12-20 09:09:35 -08:00
Generates three files namely [command].go, [command]-options.go, [command].md
2014-12-18 02:18:02 -08:00
## Example
If you want to start to building `bucket` command which has options `get`, `put`, `list`:
2014-12-18 02:18:02 -08:00
```bash
2014-12-20 09:09:35 -08:00
$ minio-cli -options get,put,list bucket
$ ls bucket/
bucket-options.go bucket.go bucket.md
2014-12-18 02:18:02 -08:00
```