package
0.10.9
Repository: https://github.com/kcl-lang/cli.git
Documentation: pkg.go.dev

# Functions

CleanUpTestWorkspace will do 'rm -rf' to the "($pwd)/test_kpm_workspace".
Copy will copy file from 'srcPath' to 'dstPath'.
CopyDir will copy dir from 'srcDir' to 'dstDir'.
CreateTestWorkspace create an empty dir "($pwd)/test_kpm_workspace" for test kpm cli.
Exec execute common command.
ExecKpm executes command.
ExecKpmWithInDirWithEnv executes kpm command in work directory with env.
ExecKpmWithStdin executes kpm command in work directory with stdin.
ExecKpmWithWorkDir executes kpm command in work directory.
Exec execute common command.
GetKpmCLIBin return kpm binary path in e2e test.
GetWrokDir return work directory.
GetWorkspace return the path of test workspace.
IsIgnore will reture whether the expected result in 'expectedStr' should be ignored.
LoadAllTestSuites load all test suites from 'getWorkDir()/test_suites'.
LoadFile will read the file from 'path' and return the content.
LoadTestSuite load test suite from 'getWorkDir()/test_suites/name'.
RemoveLineOrder will remove the line order in 'str1'.
ReplaceAllKeyByValue will replace all 'key's by 'value' in 'originStr'.
SplitCommand will spilt command string into []string, but the string in quotes will not be cut.

# 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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author