1
0
mirror of https://github.com/minio/mc.git synced 2025-11-16 11:02:34 +03:00

Deprecate bash-completion support

This commit is contained in:
Harshavardhana
2015-04-17 19:42:32 -07:00
parent 07ddad4b1c
commit 5f4d89ccd5
7 changed files with 60 additions and 101 deletions

View File

@@ -50,11 +50,11 @@ func (e errInvalidGlobURL) Error() string {
}
type errInvalidAliasName struct {
alias string
name string
}
func (e errInvalidAliasName) Error() string {
return "Not a valid alias name: " + e.alias + " Valid examples are: Area51, Grand-Nagus.."
return "Not a valid alias name: " + e.name + " Valid examples are: Area51, Grand-Nagus.."
}
type errInvalidAuth struct{}
@@ -68,3 +68,34 @@ type errNoMatchingHost struct{}
func (e errNoMatchingHost) Error() string {
return "No matching host found."
}
type errConfigExists struct{}
func (e errConfigExists) Error() string {
return "Config exists"
}
// errAliasExists - alias exists
type errAliasExists struct {
name string
}
func (e errAliasExists) Error() string {
return fmt.Sprintf("alias: %s exists", e.name)
}
// errAliasNotFound - alias not found
type errAliasNotFound struct {
name string
}
func (e errAliasNotFound) Error() string {
return fmt.Sprintf("alias: %s exists", e.name)
}
// errInvalidAuthKeys - invalid authorization keys
type errInvalidAuthKeys struct{}
func (e errInvalidAuthKeys) Error() string {
return fmt.Sprintf("invalid authorization keys")
}