diff options
| author | Ryo Nihei <nihei.dev@gmail.com> | 2021-09-02 00:19:30 +0900 |
|---|---|---|
| committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-09-02 00:19:30 +0900 |
| commit | d904e8224505fbbc7ae6f4a412a14096dcb2fde8 (patch) | |
| tree | 39222c50b4e8f514d0cc128fb4206adaf53f9b86 /cmd | |
| parent | Support LAC (lookahead correction) (diff) | |
| download | cotia-d904e8224505fbbc7ae6f4a412a14096dcb2fde8.tar.gz cotia-d904e8224505fbbc7ae6f4a412a14096dcb2fde8.tar.xz | |
Rename describe command to show command
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/vartan/show.go (renamed from cmd/vartan/describe.go) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/vartan/describe.go b/cmd/vartan/show.go index 2dabf9f..920ba66 100644 --- a/cmd/vartan/describe.go +++ b/cmd/vartan/show.go @@ -14,21 +14,21 @@ import ( "github.com/spf13/cobra" ) -var describeFlags = struct { +var showFlags = struct { }{} func init() { cmd := &cobra.Command{ - Use: "describe", + Use: "show", Short: "Print a description file in readable format", - Example: ` vartan describe grammar-description.json`, + Example: ` vartan show grammar-description.json`, Args: cobra.ExactArgs(1), - RunE: runDescribe, + RunE: runShow, } rootCmd.AddCommand(cmd) } -func runDescribe(cmd *cobra.Command, args []string) (retErr error) { +func runShow(cmd *cobra.Command, args []string) (retErr error) { defer func() { panicked := false v := recover() |
