This pull request adds the initial CLI implementation for Dodl using the Cobra framework. It includes the root command, create command, init command, and sets up the basic project structure to support future development.
Key Changes:
Added cmd/create.go to implement the create command, allowing users to create new documents with specified types, topics, and dates.
Added cmd/init.go to implement the init command, which initializes a new Dodl workspace.
Defined the root command in cmd/root.go to serve as the entry point for the application.
Added go.mod and go.sum for module and dependency management.
Created models/command.go to define the CommandContext struct, which standardizes data passing between commands and the core logic.
Updated main.go to execute the root command.
These additions form the foundation of Dodl’s command-line interface and establish the structure for further development.
This pull request adds the initial CLI implementation for Dodl using the Cobra framework. It includes the root command, create command, init command, and sets up the basic project structure to support future development.
Key Changes:
These additions form the foundation of Dodl’s command-line interface and establish the structure for further development.