spike

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 2 Imported by: 0

README

Gif of Spike Spiegel from Cowboy Bebop in space

Note: I do not make any claims to the Cowboy Bebop assets, names, or trademarks.

Spike

A command line TODO application to track my various tasks across systems. The tasks are stored in a JSON file to ensure portability.

Badge for GitHub issues. Badge for GitHub forks. Badge for GitHub stars. Badge for GitHub license, MIT. Badge for sharable Twitter link. Badge for Golang version.

Installation

Ensure that you have a Golang version >= 1.19.

# If git cloning
make install

# If using go
go install https://github.com/mattdood/spike

Usage

The CLI adds, lists, and changes status of tasks. Use the following:

spike --help

# Create a task
spike create -name "Something" -desc "Longer description"

# Find a task to update (list open tasks)
spike list -status O

# Update a task with ID 1 to closed
spike update -id 1 -status C

# List closed tasks
spike list -status C

Task structure

Tasks are meant to be in either O (open) or C (closed) status. The structure is defined below.

Note: id, created, and updated are auto generated.

Example ~/spikes/tasks.json structure:

{
    "O": [
        {
            "id": 1,
            "name": "Sample name",
            "description": "Longer description here",
            "created": "2022-01-01",
            "updated": "2022-01-01"
        }
    ],
    "C": [
        {
            "id": 0,
            "name": "Other name",
            "description": "Longer description here",
            "created": "2021-12-01",
            "updated": "2022-01-01"
        }
    ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL