From b80dece18c31e1c1ad6184eb1ad6395028febb2d Mon Sep 17 00:00:00 2001 From: zongz <68977949+zong-zhe@users.noreply.github.com> Date: Thu, 31 Aug 2023 18:56:54 +0800 Subject: [PATCH] fix: fix typo 'dependancy'->'dependency'. (#173) --- pkg/cmd/cmd_add.go | 2 +- .../kpm/exec_outside_pkg/help_msg/test_suite.env | 2 ++ .../kpm/exec_outside_pkg/help_msg/test_suite.input | 1 + .../kpm/exec_outside_pkg/help_msg/test_suite.stderr | 0 .../kpm/exec_outside_pkg/help_msg/test_suite.stdout | 11 +++++++++++ 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.env create mode 100644 test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.input create mode 100644 test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.stderr create mode 100644 test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.stdout diff --git a/pkg/cmd/cmd_add.go b/pkg/cmd/cmd_add.go index 29b2c356..3fa7c770 100644 --- a/pkg/cmd/cmd_add.go +++ b/pkg/cmd/cmd_add.go @@ -22,7 +22,7 @@ func NewAddCmd() *cli.Command { return &cli.Command{ Hidden: false, Name: "add", - Usage: "add new dependancy", + Usage: "add new dependency", Flags: []cli.Flag{ &cli.StringSliceFlag{ Name: "git", diff --git a/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.env b/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.env new file mode 100644 index 00000000..4c789529 --- /dev/null +++ b/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.env @@ -0,0 +1,2 @@ +KPM_HOME="" +KCLVM_VENDOR_HOME="" \ No newline at end of file diff --git a/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.input b/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.input new file mode 100644 index 00000000..e65bff7f --- /dev/null +++ b/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.input @@ -0,0 +1 @@ +kpm --help \ No newline at end of file diff --git a/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.stderr b/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.stderr new file mode 100644 index 00000000..e69de29b diff --git a/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.stdout b/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.stdout new file mode 100644 index 00000000..177bc30d --- /dev/null +++ b/test/e2e/test_suites/kpm/exec_outside_pkg/help_msg/test_suite.stdout @@ -0,0 +1,11 @@ +COMMANDS: + init initialize new module in current directory + add add new dependency + pkg package a kcl package into tar + metadata output the resolved dependencies of a package + run compile kcl package. + login login to a registry + logout logout from a registry + push push kcl package to OCI registry. + pull pull kcl package from OCI registry. + help, h Shows a list of commands or help for one command \ No newline at end of file