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.
26 lines
663 B
26 lines
663 B
10 years ago
|
## Introduction
|
||
|
|
||
10 years ago
|
`minio-cli` is a stub builder for new commands,options on top of [codegangsta/cli](https://github.com/codegangsta/cli),
|
||
10 years ago
|
|
||
10 years ago
|
Idea behind providing a simple tool for rapid prototyping and encouraging new contributors to the project
|
||
10 years ago
|
|
||
|
## Usage
|
||
|
|
||
10 years ago
|
You just need to set its command name and options:
|
||
10 years ago
|
|
||
|
```bash
|
||
10 years ago
|
$ minio-cli -options option1,option2,option3 [command]
|
||
10 years ago
|
```
|
||
|
|
||
10 years ago
|
Generates three files namely [command].go, [command]-options.go, [command].md
|
||
10 years ago
|
|
||
|
## Example
|
||
|
|
||
10 years ago
|
If you want to start to building `bucket` command which has options `get`, `put`, `list`:
|
||
10 years ago
|
|
||
|
```bash
|
||
10 years ago
|
$ minio-cli -options get,put,list bucket
|
||
|
$ ls bucket/
|
||
|
bucket-options.go bucket.go bucket.md
|
||
10 years ago
|
```
|