Commit Graph
52 Commits
Author SHA1 Message Date
P R 72c8e92459 Add ilm command. (#3097) 2020-05-14 08:55:21 -07:00
Harshavardhana b99c313366 cleanup legal-hold/retention and update docs (#3197) 2020-05-04 20:09:36 -07:00
Bala FA dfa1e42b25 add mc mv command (#3134)
Fixes #3077
2020-04-14 11:59:16 -07:00
Harshavardhana 8cae137525 fix all the build errors 2020-04-03 22:22:20 -07:00
poornas 25de1da81b Add legalhold command (#3095) 2020-03-31 09:18:26 -07:00
BigUstad 71eb7f6689 Add tag command (#3117) 2020-03-22 20:59:49 -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
Harshavardhana 7c9ea88742 Update to latest minio/minio (#3020) 2019-12-24 05:46:13 -08:00
Anis Elleuch f2f8f858a6 cp: Only use session when -c is passed (#2989) 2019-12-13 10:20:56 -08:00
kannappanr 6eaf0dd05e Retention command to apply retention to objects with a Prefix (#2963) 2019-11-22 12:39:46 -08:00
Bala FA 27d1131825 add lock command (#2880)
`lock` command enables to set, get and clear object lock configuration
of given bucket.
2019-11-11 11:36:04 -08:00
Klaus Post aa4a4774da Fix Windows config path (#2898)
Remove '.exe' (case insensitive) from executable name for consistent config folder.

Potentially breaking: If people (for whatever reason) used 'mc.exe', this will potentially break their setup.
2019-10-12 00:07:10 +05:30
Harshavardhana 37bdbd037e Colorize du output appropriately (#2856) 2019-08-12 18:05:17 -07:00
Bala FA d399b1e70b add du command support (#2802)
This command works like `du` command in unices i.e. summarize disk
usage of given TARGET recursively.
2019-08-07 21:02:09 -07:00
Harshavardhana 0f360131cb Remove runtime checks use go build tag (#2848)
Project can be only built with go1.12 or newer
other build related changes to use new go1.12
features.

Fixes #2815
2019-08-06 15:41:04 -07:00
Praveen raj Mani bdcb9dcb2f Add tree listing (#2804) 2019-07-17 22:23:02 -07:00
Harshavardhana ab3e70ae9f Fix escape characters in trace command (#2822) 2019-07-13 09:07:34 +05:30
Harshavardhana 31e5ac02bd Fix auto-completion code (#2819)
Reverts the code in #2812

Fixes #2816
2019-07-11 10:41:14 -07:00
Anis Elleuch df9320134b autocompletion: Add control flag and a prompt (#2812)
*) Add --no-autocompletion to disable the automatic install of
the auto completion
*) Add a prompt to ask for permission to install automatic
auto completion when not installed yet
2019-07-04 22:40:56 -07:00
Harshavardhana e978c71b7c Add staticcheck based builds (#2788)
Additionally this PR also supports
multi-platform builds to avoid cross
platform build issues.
2019-06-03 11:22:31 -07:00
ebozduman 83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
poornas e538599e2f Add mc rb command to remove empty bucket (#2662)
Change mc rm --recursive behavior to
delete objects in bucket but not the
bucket itself.

Fixes #2635
2019-02-16 20:12:38 -08:00
Anis Elleuch 4b62f520e8 Add support of bash completion (#2592)
Users of bash/zsh will have completion config enabled in the next
shell session start. This commit provides completion for commands
and all subcommands, their flags and completion of filesystems paths,
mc aliases, buckets and prefixes.
2019-02-14 22:17:43 +05:30
Harshavardhana 45578f0ed2 Implement head command (#2630) 2018-12-27 13:17:44 -08:00
Harshavardhana f3eaa54a32 Breaking change --config-folder is now --config-dir (#2620) 2018-12-05 14:10:36 -08:00
Harshavardhana 57414cbb6e Add in-place update feature (#2605) 2018-11-26 20:04:55 +05:30
Harshavardhana cb4f46854b Fix command line names and documentation (#2602) 2018-11-19 17:19:53 -08:00
Harshavardhana a83ffe321c Implement select command (#2538) 2018-09-30 23:18:33 -07:00
poornas ab6b2a83ac Add new stat sub command (#2275) 2017-10-31 13:56:40 -07:00
Harshavardhana 785e14a725 Add find command in docs, remove deprecated files and entries. (#2286) 2017-10-13 17:28:29 -07:00
Carter McClellan 49ef42d36a Implement mc find (#2201) 2017-09-05 15:44:10 -07:00
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 60681d7fb6 config: Provide meaningful errors for invalid URL and Alias. (#2233)
Fixes #2232
2017-08-06 11:35:01 -07:00
Harshavardhana 05f588fd19 mc: Inherit global flags for initialization messages. (#2189)
Fixes #2089
2017-06-26 09:10:14 -07:00
Anis Elleuch 61f2595852 fix: Set quiet when term width is unavailable (#2173)
mc was asking the user to provide --quiet flag when terminal
width is not available for any reason. This PR tries to fetch
the terminal width at mc startup and automatically set quiet flag
when it fails to fetch the width.
2017-06-06 21:48:08 -07:00
Harshavardhana 3b57e86cd3 cli: Add bash and zsh autocomplete (#2095)
Fixes #2094
2017-03-28 16:57:13 -07:00
Bala FA 9ebb916902 Use words package from minio for DamerauLevenshteinDistance() (#2075) 2017-03-19 18:25:22 -07: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 2ca601ef22 cli: Remove help sub-command and --version flag (#2030)
This is to bring consistent CLI experience as before.
2017-02-21 23:00:09 +01:00
Harshavardhana 675fbee1f3 mc: Rewrite update and version command. (#2026)
- Supports docker image
- Supports showing how old your current
  `mc` version is.
2017-02-20 22:04:54 +01:00
Harshavardhana 1f48b16acb cli: Make sure to add "--help" flag for subcommands. (#2024)
--help is now back and prints properly with command
help template.
2017-02-19 12:30:16 -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
Bala FA a5014a8c71 trie: use trie package in minio. (#2010) 2017-02-10 19:28:45 -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
Anis Elleuch b3059164aa cli: Fix --version output (#1924) 2016-12-12 10:21:52 -08:00
Anis Elleuch 2cd67b296e tls: load custom public certificates from CAs dir (#1901)
When a user needs to setup his own TLS configuration, he can put his
custom authority certificates in ~/.mc/certs/CAs/. These certificates will
be automatically loaded at startup and will be set to all HTTPS connections
2016-12-02 11:16:01 -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
Bala FA 0661f537cf update help messages of all commands. (#1856) 2016-10-17 20:18:55 -07:00
Harshavardhana 477461325d update: Update link is printed automatically for RELEASE versions. (#1840)
This link is printed only for RELEASE versions when user doesn't
provide any sub commands.

Fixes #1839
2016-09-28 10:50:06 -07:00