This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git

commit a038166940fbbfda53f34ed255178a58840c97ab
Author: kezhenxu94 <[email protected]>
AuthorDate: Mon Dec 21 12:50:26 2020 +0800

    Fix GHA description and refactor
---
 action.yml                | 2 +-
 commands/header/check.go  | 7 +------
 commands/header/header.go | 7 ++++++-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/action.yml b/action.yml
index bcdf432..0494f27 100644
--- a/action.yml
+++ b/action.yml
@@ -16,7 +16,7 @@
 # under the License.
 # 
 name: License Guard
-description: A tool for checking license headers, which theoretically supports 
checking all types of files.
+description: A full-featured license guard to check and fix license headers 
and dependencies' licenses.
 branding:
   icon: book
   color: orange
diff --git a/commands/header/check.go b/commands/header/check.go
index fc17c53..b20642f 100644
--- a/commands/header/check.go
+++ b/commands/header/check.go
@@ -23,15 +23,10 @@ import (
        "license-checker/pkg/header"
 )
 
-var (
-       // cfgFile is the config path to the config file of header command.
-       cfgFile string
-)
-
 var CheckCommand = &cobra.Command{
        Use:     "check",
-       Long:    "`check` command walks the specified paths recursively and 
checks if the specified files have the license header in the config file.",
        Aliases: []string{"c"},
+       Long:    "`check` command walks the specified paths recursively and 
checks if the specified files have the license header in the config file.",
        RunE: func(cmd *cobra.Command, args []string) error {
                var config header.Config
                var result header.Result
diff --git a/commands/header/header.go b/commands/header/header.go
index b9e8612..8786217 100644
--- a/commands/header/header.go
+++ b/commands/header/header.go
@@ -21,11 +21,16 @@ import (
        "github.com/spf13/cobra"
 )
 
+var (
+       // cfgFile is the config path to the config file of header command.
+       cfgFile string
+)
+
 var Header = &cobra.Command{
        Use:     "header",
+       Aliases: []string{"h"},
        Short:   "License header related commands; e.g. check, fix, etc.",
        Long:    "`header` command walks the specified paths recursively and 
checks if the specified files have the license header in the config file.",
-       Aliases: []string{"h"},
 }
 
 func init() {

Reply via email to