config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit f9dc328ffbf7e56ce99cd859527e86cfdb6ae3eb
parent cae3e4c174ea217f7c373ad9c918599c7edce3e3
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue, 23 May 2023 19:16:52 -0700

Make ap tag much more flexible

The 'cur', 'queue', and 'input' commands were replaced with the
'add' command, which simply adds the files returned from the given
ap command to the specified tag. If no ap command is specified,
'name' is defaulted to.

Diffstat:
Mlocal/ap/sys/config/ap/bin/tag | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/local/ap/sys/config/ap/bin/tag b/local/ap/sys/config/ap/bin/tag @@ -10,15 +10,15 @@ tags="$base"/tags com="${1:?No command}" shift case "$com" in -(cur|current) apc name | tag "$@" ;; -(queue) apc list | tag "$@" ;; -(input) tag "$@" ;; +(add) + tagfile="${1:?No tag file}" + shift + apc "${@:?name}" | tag "$tagfile" ;; (show) tag -l "$@" ;; (load) tag -l "$@" | revf | ap truncate ^ ;; (list) tags list "$tags" ;; (*) - echo "usage: tag cur[rent] [tag ...] - tag queue [tag ...] + echo "usage: tag add tagfile [apc-command] tag show [tag ...] tag load [tag ...] tag list