1
0
mirror of https://github.com/minio/mc.git synced 2025-07-28 20:01:58 +03:00

Move from mc config host to alias command (#3311)

```
mc alias set
   alias remove
   alias list
```

are new commands that replace mc config host sub-commands.

mc config host will still be available but hidden for backward
compatiblity. The JSON output is also kept if the user is running mc
config host command.
This commit is contained in:
Anis Elleuch
2020-07-28 18:26:41 +01:00
committed by GitHub
parent 9c09f78982
commit 90dc31f6ba
22 changed files with 634 additions and 390 deletions

View File

@ -48,7 +48,7 @@ var errUnrecognizedDiffType = func(diff differType) *probe.Error {
type invalidAliasedURLErr error
var errInvalidAliasedURL = func(URL string) *probe.Error {
msg := "Use `mc config host add mycloud " + URL + " ...` to add an alias. Use the alias for S3 operations."
msg := "Use `mc alias set mycloud " + URL + " ...` to add an alias. Use the alias for S3 operations."
return probe.NewError(invalidAliasedURLErr(errors.New(msg))).Untrace()
}