diff options
author | T <t@tjp.lol> | 2025-08-02 17:25:59 -0600 |
---|---|---|
committer | T <t@tjp.lol> | 2025-08-04 09:34:14 -0600 |
commit | 8be5f93f5b2d4b6f438ca84094937a0f7101c59b (patch) | |
tree | 3cedb6379818a28179e269477c12ae06dd57ca36 /internal/commands/add.go |
Initial commit of punchcard.
Contains working time tracking commands, and the stub of a command to
generate reports.
Diffstat (limited to 'internal/commands/add.go')
-rw-r--r-- | internal/commands/add.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/commands/add.go b/internal/commands/add.go new file mode 100644 index 0000000..7b43f67 --- /dev/null +++ b/internal/commands/add.go @@ -0,0 +1,19 @@ +package commands + +import ( + "github.com/spf13/cobra" +) + +func NewAddCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "add", + Short: "Add new entities to the database", + Long: "Add new clients, projects, or other entities to the punchcard database.", + } + + cmd.AddCommand(NewAddClientCmd()) + cmd.AddCommand(NewAddProjectCmd()) + + return cmd +} + |