1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
Ashish Kumar Sinha
fef437bdd6 Modify policy command (#2768)
Add set, set-json, get , get-json sub-commands.

Example:
mc policy set download s3/mybucket
mc policy set-json path-to-json-file s3/mybucket
mc policy get s3/mybucket
mc policy get-json s3/mybucket
2019-08-06 21:09:28 -07:00
Harshavardhana
7c454d8f94 Migrate to new minio/cli, fix all extra spaces across commands (#2825) 2019-07-15 19:59:28 +01:00
ebozduman
83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
Harshavardhana
ba92305de0 Migrate to go1.12, deprecate vendor directory (#2727) 2019-03-27 10:08:19 -07:00
poornas
0490231b34 For non-canned policies, show policy status as custom (#2716) 2019-03-19 09:11:16 +05:30
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
Praveen raj Mani
30965763d6 Support setting of custom policies from a JSON file (#2649)
Fixes #2633
2019-01-28 13:30:31 -08:00
Harshavardhana
cb4f46854b Fix command line names and documentation (#2602) 2018-11-19 17:19:53 -08:00
Anis Elleuch
45b32d3985 errors: Add missing ending dot in error & fatal messages (#2418) 2018-03-23 12:22:55 +05:30
Aditya Manthramurthy
ca96cfc6e6 Move pkg/probe from vendor dir to package dir (#2236)
The probe package is no longer available in the Minio server
repo. This change just moves probe from the vendor directory to its
own dir under `pkg`.

This is a maintenance fix.
2017-08-14 11:13:38 -07:00
Harshavardhana
018bcbf629 cli/docs: Fix all cli docs to be consistent in terms of usage. (#2119)
ALIAS should be called as TARGET for all cli commands.
2017-04-11 12:06:02 +01:00
Harshavardhana
4369359286 policy/links: Do not list prefixes in recursive mode. (#2070) 2017-03-14 19:41:26 +01:00
Harshavardhana
0934a39d73 cli: Fix more commands with inconsistent UI (#2045) 2017-02-28 00:21:46 +01:00
Harshavardhana
1ef242a5c1 Fix all cli commands to have consistent UI (#2040)
Fixes #2038
2017-02-27 11:44:26 -08:00
Anis Elleuch
798775775b Use ` instead of unicode single quote (#2033)
‘ is not supported in some dumb terminals, use ` instead
2017-02-25 11:08:32 -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
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
Anis Elleuch
86777e7863 links: Print encoded form of public URLs (#1947) 2017-01-05 12:16:24 -08:00
Anis Elleuch
66a65aab02 Add policy links command (#1943) 2017-01-04 08:24:58 -08:00
Harshavardhana
df395786bd mc: Consistent exit codes across all commands. (#1895)
Also brings in much needed CLI changes from
upstream and backporting our custom changes on
top of those changes.

Fixes #1880
2016-11-27 12:35:59 +05:30
Anis Elleuch
ab9cdd7fce Fix policy cmd syntax checking (#1878) 2016-11-08 13:32:27 -08:00
Anis Elleuch
cc6fa9acbf Rename 'both' policy to 'public' (#1877) 2016-11-08 10:55:55 -08:00
Bala FA
0661f537cf update help messages of all commands. (#1856) 2016-10-17 20:18:55 -07:00
Anis Elleuch
15b91126d5 More meaningful error messages with unsupported filesystem operations (share and policy) (#1833) 2016-09-25 10:20:56 -07:00
Anis Elleuch
8a48d604a8 Add policy list command (#1811) 2016-09-03 05:47:37 -07:00
Harshavardhana
2ea2ec90d2 Rename mc --> cmd 2016-08-17 18:26:18 -07:00