toodaloo

command module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Toodaloo

Say goodbye to your todos

Purpose

When writing code, it's really REALLY easy to put a TODO in your code as a reminder to look at something later on. In small projects, you'll see those reminders every time you open up the relevant files. In big projects with multiple contributors, these can get unwieldly.

Without a proper strategy to work through them, your todos will only ever expand. Toodaloo extracts these into a central file which can be tracked.

Install

Docker
docker run \
  -it \
  --rm \
  -v /path/to/dir:/data \
  ghcr.io/mrsimonemms/toodaloo
Go
go install github.com/mrsimonemms/toodaloo@latest

Commands

Scan
Scan a project

Usage:
  toodaloo scan [flags]

Flags:
      --git-files              get files from the git tree
      --glob string            glob pattern - ignored if files provided as arguments (default "**/*")
  -h, --help                   help for scan
      --ignore-paths strings   ignore scanning these files (default [.git/**/*])
  -o, --output string          output type (default "yaml")
  -s, --save-path string       save report to path - use "-" to output to stdout (default ".toodaloo.yaml")
  -t, --tags strings           todo tags (default [fixme,todo,@todo])

Global Flags:
  -d, --directory string   working directory (default "/workspaces/toodaloo2")
  -l, --log-level string   log level: trace, debug, info, warning, error, fatal, panic (default "info")

Pre-commit hook

A supported pre-commit hook is provided to scan repos.

repos:
  - repo: https://github.com/mrsimonemms/toodaloo
    rev: "" # Use the ref you want to point at
    hooks:
      - id: scan

This will generate a Markdown formatted file at toodaloo.md. It also only scans files in the git tree.

If using in CI, you will need to clone the whole Git history for the "get author" functionality to work

Contributing

Open in a container

Documentation

Overview

Copyright © 2024 Simon Emms <simon@simonemms.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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