package
3.0.16+incompatible
Repository: https://github.com/mehtab123/aliyuncloud.git
Documentation: pkg.go.dev
# README
Aliyun CLI Toolkit
Why not choose a popular library
Because aliyun cli need process unknown flags,and the following popular library did not support this feature
Code Structure
Command
.Run
.Help
Flag
FlagSet
Ctx
i18n
TODO
- Suggestions
- Support shorthand flag, -a -b
- Flag alias
- Auto complete framework
- Help document generation (ref: https://github.com/spf13/cobra#generating-documentation-for-your-command)
- Optimize --help message view
- Support
help --waiter
- Support Group Options
- Optimize noticeable error
- (low)Support shorthand combination -ab
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DistanceForMatrix reads the edit distance off the given Levenshtein matrix.
DistanceForStrings returns the edit distance between source and target.
EditScriptForMatrix returns an optimal edit script based on the given Levenshtein matrix.
EditScriptForStrings returns an optimal edit script to turn source into target.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LogMatrix writes a visual representation of the given matrix for the given strings to os.Stderr.
MatrixForStrings generates a 2-D array representing the dynamic programming table used by the Levenshtein algorithm, as described e.g.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RatioForMatrix returns the Levenshtein ratio for the given matrix.
RatioForStrings returns the Levenshtein ratio for the given strings.
No description provided by the author
No description provided by the author
No description provided by the author
SplitStringWithPrefix TODO can use function string.SplitN to replace.
No description provided by the author
No description provided by the author
No description provided by the author
WriteMatrix writes a visual representation of the given matrix for the given strings to the given writer.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Black.
Blue.
Cyan.
Green.
Black.
Blue.
Cyan.
Green.
Purple.
Red.
White.
Yellow.
Black.
Blue.
Purple.
Red.
White.
Yellow.
Reset Color.
Cyan.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Green.
Black.
Blue.
Cyan.
Green.
No description provided by the author
No description provided by the author
Purple.
Red.
White.
Yellow.
No description provided by the author
No description provided by the author
Black.
Blue.
Cyan.
Green.
Black.
Blue.
Cyan.
Green.
Purple.
Red.
White.
Yellow.
Purple.
Red.
White.
Yellow.
Purple.
Red.
No description provided by the author
Black.
Blue.
Cyan.
Green.
Purple.
Red.
White.
Yellow.
No description provided by the author
White.
Yellow.
# Variables
DefaultOptions is the default options: insertion cost is 1, deletion cost is 1, substitution cost is 2, and two runes match iff they are the same.
This variable is replaced in compile time `-ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=${VERSION}'"`.
# Structs
No description provided by the author
No description provided by the author
CLI Command Context.
No description provided by the author
No description provided by the author
No description provided by the author
OUTPUT: Error: "'%s' is not a valid command
{Hint}
.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
helper class for Suggester.
# Interfaces
If command.Execute return Noticeable error, print i18n Notice under error information.
error with suggestions.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author