Klaus Post
ed0b962588
Modernize + Go version bump + Pin linter ( #5256 )
...
* Upgrade go version in CI.
* Add toolchain to pin version.
* Add linter/fumpt as pinned version in tools.
* Run `go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...`
2025-11-05 04:20:36 -08:00
Burkov Egor
0b4d69bc57
fix: update better error handling ( #5188 )
2025-04-10 08:50:18 -07:00
Aditya Manthramurthy
d4b7b00d73
Bump up minio/pkg to v3 ( #4940 )
2024-05-23 00:59:47 -07:00
Harshavardhana
5dfaa31d67
move to crypto/sha256 instead of sha256-simd ( #4911 )
2024-04-25 15:35:12 -07:00
Aditya Manthramurthy
e2056fb057
Update to minio/pkg v2 ( #4674 )
2023-09-02 14:28:03 -07:00
Harshavardhana
1fbd97aa04
run gofumpt -extra on all source files ( #4634 )
2023-07-17 13:10:20 -07:00
Harshavardhana
34a67cb169
cleanup mc to use 'go' errs to be 'e' ( #4450 )
2023-01-24 02:03:57 -08:00
Klaus Post
52a931bfa7
Add staticcheck to CI ( #4386 )
2022-12-05 08:32:04 -08:00
adfost
fd7142e223
update license headers to 2022 ( #4360 )
2022-11-14 18:38:39 -08:00
Harshavardhana
cf7e0ae050
generalize input for ctx.Command.Name ( #4338 )
2022-11-01 08:04:26 -07:00
Harshavardhana
27322636ae
feat: Introduce 'mc batch' command ( #4225 )
2022-10-09 14:10:59 -07:00
Harshavardhana
a7dd2810ae
fix: updateURL when customURL is not passed ( #4279 )
2022-10-03 15:00:41 -07:00
Anis Elleuch
f85086b153
Use a pager for help output ( #4245 )
2022-09-28 11:28:02 -07:00
Harshavardhana
acd390f261
allow support for airgapped 'mc update' URL ( #4244 )
...
support airgapped environments to update `mc`
via a URL, similar to `minio server`
2022-09-12 12:51:52 -07:00
Prakash Senthil Vel
276e1db70d
Error message when update failing due to permissions ( #4057 )
2022-04-26 04:30:21 -07:00
Harshavardhana
a59f9e4d30
add gofumpt support, automated cleanup ( #3911 )
2022-01-06 10:55:40 -08:00
Harshavardhana
c19d58bb88
add 'mc update' progress bar support ( #3782 )
2021-08-21 21:01:31 -07:00
Harshavardhana
7d142be711
support parsing special tags after releaseTag
2021-05-11 19:51:36 -07:00
Harshavardhana
954f0a5fd1
add fips build support for mc
2021-05-11 18:25:46 -07:00
Harshavardhana
1402987ccb
change license to AGPLv3
2021-05-11 17:45:08 -07:00
Shireesh Anjal
1f71fdc03a
Add option to upload health report to Subnet ( #3641 )
...
Add an optional text flag `license` to the `subnet health`
command. If this flag is passed, upload the generated health report to
Subnet by passing the license key as auth.
2021-03-22 09:26:09 -07:00
Anis Elleuch
d4fbfb5975
Show better looking help when a wrong flag is passed ( #3461 )
2020-12-02 22:19:26 -08:00
Harshavardhana
ce0c109ae3
update json flag help to indicate the correct format ( #3411 )
...
some users may get confused without reading the docs
might end up assuming that --json is a full JSON document.
2020-09-21 00:43:41 -07:00
Harshavardhana
0b0acc611f
Revert "cli: Load global flags in initBeforeRunningCmd ( #3283 )" ( #3302 )
...
This reverts commit 712ff33319 .
2020-07-16 11:10:35 -07:00
Harshavardhana
fbb7d75c1c
support proper proxy for all transports ( #3290 )
...
fixes #3225
2020-07-07 17:07:49 -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
7c9ea88742
Update to latest minio/minio ( #3020 )
2019-12-24 05:46:13 -08:00
Harshavardhana
3f426ff7e0
Update export command to print disabled sub-sys as comments ( #2978 )
2019-12-03 12:10:12 -08:00
ebozduman
a9c606f119
Customize service help for Windows/Linux users ( #2908 )
2019-09-28 08:33:28 +05:30
Harshavardhana
93297260be
Remove 'mc update' prompt just update automatically ( #2900 )
2019-09-19 09:01:24 -07:00
Harshavardhana
7c454d8f94
Migrate to new minio/cli, fix all extra spaces across commands ( #2825 )
2019-07-15 19:59:28 +01:00
Harshavardhana
6003da8daa
update command with json flag shouldn't throw prompt ( #2809 )
2019-06-27 15:43:14 -07:00
Ashish Kumar Sinha
56309a4999
mc command cleanup ( #2783 )
2019-06-27 14:47:08 +05:30
Harshavardhana
98e88c2ff0
Add proper JSON status field for API compatibility ( #2807 )
2019-06-26 10:51:17 -07: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
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
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
694ab27649
build/release: Add sha256sums for minio client releases. ( #2171 )
...
Additionally deprecate support for arm6vl platform.
Fixes #2151
2017-06-07 17:09:19 -07: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
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
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
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