We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263bfbb commit dd72e75Copy full SHA for dd72e75
cmd/root.go
@@ -2,6 +2,7 @@ package cmd
2
3
import (
4
"errors"
5
+ "fmt"
6
"os"
7
"runtime/debug"
8
"strconv"
@@ -17,7 +18,6 @@ var (
17
18
19
var (
20
ErrInvalidDuration = errors.New("invalid duration")
- ErrArgument = errors.New("invalid argument")
21
)
22
23
var rootCmd = &cobra.Command{
@@ -29,7 +29,8 @@ var rootCmd = &cobra.Command{
29
RunE: func(cmd *cobra.Command, args []string) error {
30
var duration time.Duration
31
if len(args) == 0 {
32
- return ErrArgument
+ fmt.Print(simpleSheep.Awake)
33
+ return nil
34
}
35
36
if seconds, err := strconv.Atoi(args[0]); err == nil {
0 commit comments