Skip to content

Commit

Permalink
refactor: remove old help command
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Mar 25, 2022
1 parent ba4f8d3 commit acd99f0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/cli/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cli

import (
"errors"
"flag"
"fmt"
"io/ioutil"
"os"
Expand Down Expand Up @@ -37,7 +36,6 @@ var Actions = map[string]func(args []string, cfg *core.Config) error{
"ls-config": printConfig,
"ls-metrics": printMetrics,
"dc": printConfig,
"help": printUsage,
"tag": runTag,
"compile": compileRule,
"run": runRule,
Expand All @@ -53,11 +51,6 @@ func printConfig(args []string, cfg *core.Config) error {
return err
}

func printUsage(args []string, cfg *core.Config) error {
flag.Usage()
return nil
}

func printMetrics(args []string, cfg *core.Config) error {
if len(args) != 1 {
return core.NewE100("ls-metrics", errors.New("one argument expected"))
Expand Down

0 comments on commit acd99f0

Please sign in to comment.