Skip to content

Commit 0e7dac7

Browse files
authored
feat: show where files are stored (#5)
1 parent 2a7eea9 commit 0e7dac7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cmds.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ var addCmd = &cobra.Command{
4444
},
4545
}
4646

47+
var whereCmd = &cobra.Command{
48+
Use: "where",
49+
Short: "Show where your tasks are stored",
50+
Args: cobra.NoArgs,
51+
RunE: func(cmd *cobra.Command, args []string) error {
52+
_, err := fmt.Println(setupPath())
53+
return err
54+
},
55+
}
56+
4757
var deleteCmd = &cobra.Command{
4858
Use: "delete ID",
4959
Short: "Delete a task by ID",
@@ -226,6 +236,7 @@ func init() {
226236
"specify a status for your task",
227237
)
228238
rootCmd.AddCommand(updateCmd)
239+
rootCmd.AddCommand(whereCmd)
229240
rootCmd.AddCommand(deleteCmd)
230241
rootCmd.AddCommand(kanbanCmd)
231242
}

0 commit comments

Comments
 (0)