td

command module
v0.0.0-...-9b2716d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Synopsis

The non-complicated task list is a straightforward and efficient instrument for arranging duties. To append a new task, just utilize the -a flag:

% td -a 'strip bed'

In the absence of any flag, td will display the existing tasks:

% td
0:learn k8s
1:update os
2:strip bed

To denote a task as accomplished, apply the -c flag pursued by the numerical index of the task:

% td -c 2
% td
0:learn k8s
1:update os

Installation

These are generic installation instructions for unix-like systems.

The Makefile included in the 'td' project automates the building process of the project. To use it, simply navigate to the project directory and run the following command:

% doas make install -o check

By default, the command installs the executable in /usr/local/bin. To install it in a different location, modify the variables of cfg.mk.

Targets

The Makefile include in the 'td' project recognizes the following targets to control how it operates:

build

Compiles the source code, applies linker flags to reduce the binary size, and disables CGO. It creates an executable binary file named 'td' in the current directory that can be executed to run the project.

install

Copy the executable file created by the build target to a system-wide directory specified by $(GOBIN) variable.

fmt

Format the source code of the project according to the Golang standard formatting rules. It ensures that the code is well-structured and easy to read.

vet

Check the code for correctness. It detects potential errors and mistakes in the code and provides suggestions for fixing them.

check

Apply static analysis to the codebase. It detects a wide range of issues, including code smells, security vulnerabilities, and potential bugs.

To use this target, you must have staticcheck installed on your system.

Windows users

To build and install the 'td' project on Windows using cmd, run the following command:

set CGO_ENABLED=0
go install -ldflags="-s -w" git.sr.ht/~nzv/td@latest

The project will be installed in $GOPATH\bin.

License

All sources implement the BSD-3 license. For additional details, please consult the LICENSE file.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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