This is a tool to extract TODOs, NOTEs etc or search user provided terms from given files and/or directories.

ado

This is a tool to extract TODOs, NOTEs etc or user provided terms from given files and/or directories.

DEPRECIATED: My project seek has cleaner code and includes the core functionality/idea of this project. However, will keep this project here, since it has some nuances, that seek does not have.

Usage

ado [SUBCOMMAND | [FLAG= ] [filname(s) | dirname(s)]]

SUBCOMMANDS

help

Prints help.

FLAGS

-file=filename

The filename where the TODOs, NOTEs etc are saved in the current working directory.

-indent=int

The size of indentation between filepath and ado. (default 60)

-ignore=filename

Ignore file, where each line represents one directory or file that is ignored. If when .adoignore exist in the current directory, this flag is not necessary. (default .adoignore)

-search=string

Search for a specific string (regexp allowed); will overwrite the default search keywords (see keywords).

-add=filename

File, where each line represents one additional keyword (regexp allowed).

-depth=int

The depth of directory structure recursion, -1 is exhaustive recursion. (default -1)

DEFAULT SEARCH KEYWORDS

TODO:|NOTE:|HACK:|DEBUG:|FIXME:|REVIEW:|BUG:|TEST:|TESTME:|MAYBE:

Examples

  • Gets recursively all ados from current working directory.
    ado
  • Prints help for ado program.
    ado help
  • Gets recursively all ados from current and parent directory.
    ado . ..
    ado ./ ../
    ado . ../
    ado ./ ..
  • Gets recursively all ados from parent directory and .
    ado <file1> ../
  • Gets all ados from and in addition saves them to test.txt in the current working directory.
    ado -file=test.txt <file1>
    ado --file=test.txt <file1>
  • Gets recursively all ados from current directory and prints them so that ados start at column 100.
    ado -indent=100
    ado --indent=100
  • Gets recursively all ados from current directory, ignoring files and directories mentioned in the given file.
    ado -ignore=.adoignore
    ado --ignore=.adoignore
  • Gets recursively all 'RandomString' mentions from current directory.
    ado -search=RandomString
    ado --search=RandomString
  • Gets recursively all ados from current directory, including the keywords mentioned in the given file.
    ado -add=.adoadd
    ado --add=.adoadd
  • Gets recursively all ados from current directory, until subdirectory depth is 2 (including).
    ado -depth=2
    ado --depth=2

Example output

/path/to/directory/ado/ado.go:50:                HACK: not the most elegant solution, but will do for now.

Author

Meelis Utt

Similar Resources

RtxTest - Extract this zip file into your golang development environment

Documentation 1. Clone or extract file extract this zip file into your golang de

May 12, 2022

A basic file server automatically generates self certificates and serves the given folder.

A basic file server automatically generates self certificates and serves the given folder.

Jul 20, 2022

searchHIBP is a golang tool that implements binary search over a hash ordered binary file.

searchHIBP is a golang tool that implements binary search over a hash ordered binary file.

Nov 9, 2021

A useful file search tool

A useful file search tool

go-find 花了半天时间写的一个的文件名、文件内容搜索工具,主要是为了hvv中快速发现敏感文件、配置文件等。

Sep 22, 2022

Small gh extension that suggests issues to work on in a given GitHub repository

gh contribute being a gh extension for finding issues to help with in a GitHub repository. This extension suggests an issue in a given repository to w

Dec 24, 2022

Encguess is an application which attempts to guess the encoding of a given file.

Encguess Encguess is an application which attempts to guess the encoding of a given file. It will be focused on solving practical problems which I hav

Nov 10, 2021

app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files

app-services-go-linter app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files. A

Nov 29, 2021

Split text files into gzip files with x lines

hakgzsplit split lines of text into multiple gzip files

Jun 21, 2022
Related tags
A tool for moving files into directories by file extensions
A tool for moving files into directories by file extensions

The tool for moving files into directories by file extensions Example before moving structure: moving into same extension dir result: moving into diff

Dec 6, 2021
A Go filesystem package for working with files and directories

Stowage A Go filesystem package for working with files and directories, it features a simple API with support for the common files and directories ope

May 28, 2021
🌳 📂 The utility displays a tree of directories and files(symlinks in future).

dirTree The utility displays a tree of directories and files. usage: dirTree [-f] How it works with directory, where I wrote this project for example

Aug 12, 2021
Easily create & extract archives, and compress & decompress files of various formats

archiver Introducing Archiver 3.1 - a cross-platform, multi-format archive utility and Go library. A powerful and flexible library meets an elegant CL

Jan 3, 2023
Golang wrapper for Exiftool : extract as much metadata as possible (EXIF, ...) from files (pictures, pdf, office documents, ...)

go-exiftool go-exiftool is a golang library that wraps ExifTool. ExifTool's purpose is to extract as much metadata as possible (EXIF, IPTC, XMP, GPS,

Dec 28, 2022
A blazingly-fast simple-to-use tool to find duplicate files on your computer, portable hard drives etc.

A fast and simple tool to find duplicate files (photos, videos, music, documents) on your computer, portable hard drives etc.

Jan 9, 2023
go tool for working with /etc/hosts files

hostsfile This library, and the associated command line binary, will help you manipulate your /etc/hosts file. Both the library and the binary will le

Dec 30, 2022
Format /etc/fstab files.
Format /etc/fstab files.

Format /etc/fstab files. Features and limitations Can format /etc/fstab files. Will use 2 spaces between all fields, if they are of equal length. The

Dec 3, 2022
Grep archive search in any files on the filesystem, in archive and even inner archive.

grep-archive Grep archive search for string in any files on the filesystem, in archive and even inner archive. Supported archive format are : Tar Form

Jan 26, 2022
Extract profiles and tasks information from CSV file

Footsite-Bot ideas from jw6602 Extract profiles and tasks information from CSV f

Nov 25, 2022