File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ import (
44 "fmt"
55
66 flashduty "github.com/flashcatcloud/flashduty-sdk"
7+ "github.com/spf13/cobra"
8+
79 "github.com/flashcatcloud/flashduty-cli/internal/output"
810 "github.com/flashcatcloud/flashduty-cli/internal/timeutil"
9- "github.com/spf13/cobra"
1011)
1112
1213func newChangeCmd () * cobra.Command {
Original file line number Diff line number Diff line change 44 "strconv"
55
66 flashduty "github.com/flashcatcloud/flashduty-sdk"
7- "github.com/flashcatcloud/flashduty-cli/internal/output"
87 "github.com/spf13/cobra"
8+
9+ "github.com/flashcatcloud/flashduty-cli/internal/output"
910)
1011
1112func newChannelCmd () * cobra.Command {
Original file line number Diff line number Diff line change 44 "fmt"
55 "io"
66
7- "github.com/flashcatcloud/flashduty-cli/internal/output"
87 "github.com/spf13/cobra"
8+
9+ "github.com/flashcatcloud/flashduty-cli/internal/output"
910)
1011
1112// RunContext provides helpers for command execution. It is created by
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ package cli
33import (
44 "fmt"
55
6- "github.com/flashcatcloud/flashduty-cli/internal/config"
76 "github.com/spf13/cobra"
7+
8+ "github.com/flashcatcloud/flashduty-cli/internal/config"
89)
910
1011func newConfigCmd () * cobra.Command {
Original file line number Diff line number Diff line change 55 "strconv"
66
77 flashduty "github.com/flashcatcloud/flashduty-sdk"
8- "github.com/flashcatcloud/flashduty-cli/internal/output"
98 "github.com/spf13/cobra"
9+
10+ "github.com/flashcatcloud/flashduty-cli/internal/output"
1011)
1112
1213func newEscalationRuleCmd () * cobra.Command {
Original file line number Diff line number Diff line change 44 "strings"
55
66 flashduty "github.com/flashcatcloud/flashduty-sdk"
7- "github.com/flashcatcloud/flashduty-cli/internal/output"
87 "github.com/spf13/cobra"
8+
9+ "github.com/flashcatcloud/flashduty-cli/internal/output"
910)
1011
1112func newFieldCmd () * cobra.Command {
Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ import (
99 "strings"
1010
1111 flashduty "github.com/flashcatcloud/flashduty-sdk"
12- "github.com/flashcatcloud/flashduty-cli/internal/output"
13- "github.com/flashcatcloud/flashduty-cli/internal/timeutil"
1412 "github.com/spf13/cobra"
1513 "golang.org/x/term"
14+
15+ "github.com/flashcatcloud/flashduty-cli/internal/output"
16+ "github.com/flashcatcloud/flashduty-cli/internal/timeutil"
1617)
1718
1819func newIncidentCmd () * cobra.Command {
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ import (
77 "time"
88
99 flashduty "github.com/flashcatcloud/flashduty-sdk"
10- "github.com/flashcatcloud/flashduty-cli/internal/config"
1110 "github.com/spf13/cobra"
1211 "golang.org/x/term"
12+
13+ "github.com/flashcatcloud/flashduty-cli/internal/config"
1314)
1415
1516func newLoginCmd () * cobra.Command {
Original file line number Diff line number Diff line change 55 "strconv"
66
77 flashduty "github.com/flashcatcloud/flashduty-sdk"
8- "github.com/flashcatcloud/flashduty-cli/internal/output"
98 "github.com/spf13/cobra"
9+
10+ "github.com/flashcatcloud/flashduty-cli/internal/output"
1011)
1112
1213func newMemberCmd () * cobra.Command {
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ import (
88 "os"
99
1010 flashduty "github.com/flashcatcloud/flashduty-sdk"
11+ "github.com/spf13/cobra"
12+
1113 "github.com/flashcatcloud/flashduty-cli/internal/config"
1214 "github.com/flashcatcloud/flashduty-cli/internal/output"
13- "github.com/spf13/cobra"
1415)
1516
1617// flashdutyClient defines the SDK operations used by CLI commands.
4849)
4950
5051var rootCmd = & cobra.Command {
51- Use : "flashduty" ,
52- Short : "Flashduty CLI - incident management from your terminal" ,
53- Long : "Flashduty CLI - incident management from your terminal.\n \n Get started by running 'flashduty login' to authenticate." ,
52+ Use : "flashduty" ,
53+ Short : "Flashduty CLI - incident management from your terminal" ,
54+ Long : "Flashduty CLI - incident management from your terminal.\n \n Get started by running 'flashduty login' to authenticate." ,
5455 SilenceUsage : true ,
5556 SilenceErrors : true ,
5657}
You can’t perform that action at this time.
0 commit comments