Harshavardhana
0b0acc611f
Revert "cli: Load global flags in initBeforeRunningCmd ( #3283 )" ( #3302 )
...
This reverts commit 712ff33319 .
2020-07-16 11:10:35 -07:00
Anis Elleuch
712ff33319
cli: Load global flags in initBeforeRunningCmd ( #3283 )
...
app.Before receives a cli.Context but without flags parsed. There is no
point calling ctx.Bool() or ctx.IsSet() at that stage.
However, flags are parsed in commands, so minio initialization and
setting global variables (globalJSON, globalQuiet, etc..) can be moved
to the Before function of all commands.
Avoid setting command.Before for non leaf commands, otherwise Before
function will be called multiples times until it reaches the leaf
command.
2020-07-01 17:28:43 -07:00
Harshavardhana
bd7564a2d4
Add 'mc admin update' command ( #2857 )
...
Also this PR deprecates `service status` command
2019-08-28 15:57:25 -07:00
ebozduman
83a9d8b91d
Adds missing codebase MinIO and min.io changes ( #2745 )
2019-04-16 22:31:54 -07:00
Harshavardhana
cb4f46854b
Fix command line names and documentation ( #2602 )
2018-11-19 17:19:53 -08:00
Harshavardhana
2d4346bfe1
Add 'mc admin' complete guide ( #2456 )
...
Fixes #2428
2018-06-01 09:16:01 +05:30
Aditya Manthramurthy
793cda2ca0
New Admin API client-side implementation ( #2350 )
2018-01-23 12:32:58 -08:00
Krishnan Parthasarathi
05468dfc8d
Improve admin subcommand structure ( #2098 )
...
- Rename password subcommand to credentials
- Make clear-lock require --force flag
- Also, fix lock and heal mc-admin subcommand usage text.
2017-03-31 01:12:00 -07:00
Harshavardhana
1a6987558a
admin: Hide help sub-command from 'mc admin service' ( #2091 )
2017-03-26 10:30:35 +01:00
Harshavardhana
1ef242a5c1
Fix all cli commands to have consistent UI ( #2040 )
...
Fixes #2038
2017-02-27 11:44:26 -08:00
Harshavardhana
e7e44b96ee
Avoid printing hidden flags and commands with custom help. ( #2015 )
...
Always use .VisibleFlags and .VisibleCommands in templates
to avoid printing hidden flags and commands in the help
template.
2017-02-15 02:05:29 -08:00
Anis Elleuch
fb9d10772a
help: Use {{.HelpName}} in help/examples template ( #2013 )
...
It is easier to use {{.HelpName}} in help text template to print
the mc binary name plus the whole command hierarchy (binary name +
command + subcommand, etc..)
2017-02-12 09:30:00 -08:00
Anis Elleuch
8ce4b39fed
admin: Rename creds to password subcommand ( #2009 )
...
Use new command "mc admin password" to change creds
2017-02-09 12:13:45 -08:00
Anis Elleuch
b031817fce
admin: Add creds command ( #1976 )
...
mc admin service creds command set new access and secret keys in the specified Minio server
2017-01-22 15:17:55 -08:00
Anis Elleuch
085a1e512f
flags: use IsSet to fetch for cli flags ( #1969 )
...
cli package fails to search for global flags when we use many level of subcommands. This PR uses context.IsSet() instead.
2017-01-19 11:25:35 -08:00
Harshavardhana
d87078bee6
service: Remove service stop command. ( #1967 )
...
Deprecate and remove `stop` admin command.
2017-01-14 16:38:01 -08:00
Anis Elleuch
e90e9bc352
admin: Introduce the new service command ( #1922 )
...
Introducing Admin Service cmd to mc
2016-12-22 13:37:55 -08:00