Taran Pelkey
1c6f4f48ab
Add errors for deprecated commands ( #4498 )
2023-04-06 09:51:10 -07:00
Harshavardhana
252421354c
update functional tests for admin_users with 'policy commands' ( #4508 )
2023-03-19 20:49:16 -07:00
Taran Pelkey
9401450402
Restructure adding and removing policies from users and groups ( #4428 )
2023-03-18 16:41:57 -07:00
Klaus Post
52a931bfa7
Add staticcheck to CI ( #4386 )
2022-12-05 08:32:04 -08:00
Aditya Manthramurthy
854b4f123f
Bump up madmin-go to v2 ( #4382 )
2022-12-01 10:41:14 -08:00
adfost
fd7142e223
update license headers to 2022 ( #4360 )
2022-11-14 18:38:39 -08:00
dorman
2f5bf0c17f
modify operation type in message ( #4339 )
2022-11-01 14:10:26 -07:00
Harshavardhana
cf7e0ae050
generalize input for ctx.Command.Name ( #4338 )
2022-11-01 08:04:26 -07:00
Anis Elleuch
f85086b153
Use a pager for help output ( #4245 )
2022-09-28 11:28:02 -07:00
Anis Elleuch
3142b54cc1
Avoid cutting policy name in admin policy list command ( #4241 )
...
`mc admin policy list` only shows policy names, it does not need
to cut the policy name to 20 characters when showing it.
2022-09-09 03:47:41 -07:00
Harshavardhana
1264168162
sufficiently colorize svacct command outputs ( #3917 )
...
also print help when no args passed, instead of asking
for `--help`
fixes #3803
2022-01-10 08:55:23 -08:00
Aditya Manthramurthy
7031efb55a
Update admin policy/user commands with new policy info API ( #3877 )
...
will support older minio versions as well
2021-12-11 09:04:32 -08:00
Harshavardhana
ae271e7645
add new linters and fix unnecessary type conversions ( #3835 )
2021-10-14 15:33:31 -07:00
Harshavardhana
91efd0c066
migrate mc to minio/pkg ( #3731 )
...
remove all dependency for minio/minio
2021-05-29 09:30:33 -07:00
Harshavardhana
1402987ccb
change license to AGPLv3
2021-05-11 17:45:08 -07:00
Harshavardhana
6c3ac00e18
update madmin to github.com/minio/madmin-go ( #3710 )
2021-05-06 13:33:17 -07:00
Anis Elleuch
1d9873c512
admin policy: Add unset & update command ( #3638 )
...
`unset` will remove policies from a user or a group
`update` will add new policies to a user or a group
2021-03-06 13:14:49 -08:00
Anis Elleuch
d4fbfb5975
Show better looking help when a wrong flag is passed ( #3461 )
2020-12-02 22:19:26 -08:00
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
cb9e103714
upgrade to latest pkg/madmin package ( #3151 )
2020-04-10 08:57:45 -07:00
Anis Elleuch
64a78e7811
Add global context and adapt context change in admin API ( #3125 )
...
This commit adds a new global context, monitors os signals
and cancels the global context in such cases to exit
on going process gracefully.
It will also update minio-go and adapts the code with
the new context changes in the admin API.
2020-03-21 13:42:41 -07:00
Harshavardhana
9663319e9e
Update mc dependencies to recent dep change on MinIO ( #3026 )
2019-12-31 11:27:59 -08:00
ebozduman
a9c606f119
Customize service help for Windows/Linux users ( #2908 )
2019-09-28 08:33:28 +05:30
poornas
1dd2b4494d
Fix error message wording in mc admin commands ( #2887 )
2019-09-06 17:09:44 -07:00
Aditya Manthramurthy
3b94d4d3e0
Add policy set command ( #2852 )
...
This is a BREAKING change.
- This command sets policy for user and group
- `mc admin user set-policy` is now removed.
- `mc admin uesr add` no longer accepts a policy to set on the user.
Add user info command to show groups of a user
2019-08-13 14:11:27 -07:00
Aditya Manthramurthy
6200a34522
Add "mc admin policy info" command to display policy content ( #2818 )
2019-07-18 01:43:10 +01:00
ebozduman
83a9d8b91d
Adds missing codebase MinIO and min.io changes ( #2745 )
2019-04-16 22:31:54 -07:00
Sidhartha Mani
c75abbb3f9
use colorjson for all other mc outputs ( #2683 )
...
- Update to MarshalIndent instead of Marshal
- Allow unmarshalling
2019-02-28 14:33:13 -08:00
Harshavardhana
cb4f46854b
Fix command line names and documentation ( #2602 )
2018-11-19 17:19:53 -08:00