matthewchivers / dodl

MIT License
0 stars 0 forks source link

Command / UX Design #3

Open matthewchivers opened 3 weeks ago

matthewchivers commented 3 weeks ago

The dodl command-line tool is designed to be intuitive and easy to use, with commands and options that make sense even to first-time users. Below is the proposed command-line schema, along with examples that illustrate how to use each command and option effectively.

General Syntax

dodl [command] [options]

If no command is provided, dodl defaults to the create action.

Document Creation and Retrieval

Create a New Document

Syntax:

dodl create [document_type] [options]

dodl defaults to the 'create' command, which means the following is valid too:

dodl [document_type] [options]

Options:

Examples:

Create a new scrum document with a topic:

dodl scrum -t "Sprint Planning"

Create a notes document with a specific date and topic:

dodl notes -d 2023-10-01 --topic "Project X"

Simulate creating a document without actually doing it:

dodl scrum --topic "Test Run" --dry-run

Workspace Initialisation and Management

Initialise a workspace

The dodl init command creates a new dodl workspace. This workspace contains a .dodl directory that stores configuration and templates.

Syntax:

dodl init [[-d, --directory] directory]

Options:

Examples:

Initialise a new workspace in the current directory:

dodl init

Initialise a workspace in a specified directory:

dodl init /path/to/workspace

Configure dodl Settings

Syntax:

dodl config [get|set] [option_name] [option_value]

Examples:

Set the default editor to vim:

dodl config set editor vim

Get the current default editor:

dodl config get editor

Help and Usage Information

Syntax:

dodl help [command]

Example:

Get help for the create command:

dodl help create