Project

tag

0.0
No commit activity in last 3 years
No release in over 3 years
This project lets you tag anything from the commandline. The `tag` executable provides a consistent way to add, remove and modify tags for tagged items. The goal is to make tagging dead simple and usable by other commandline apps. In making tags a first class nix citizen, perhaps they will see the light of day.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 0.7
~> 2.11.0
~> 0.9.2

Runtime

~> 1.2
 Project Readme

Description

This project lets you tag anything from the commandline. The tag executable provides a consistent way to add, remove and modify tags for tagged items. The goal is to make tagging dead simple and usable by other commandline apps. In making tags a first class nix citizen, perhaps they will see the light of day.

Examples

Let's start with tagging animals:

$ tag add horse -t fast,strong
$ tag add cat -t fast,independent
$ tag add dog -t loving
$ tag list fast
horse
cat

Tired of animals, let's tag cities. To avoid interfering with the animals list, we'll use a cities model:

$ tag add nyc -t fast fun -m cities
$ tag add boston -t educated,clean -m cities
$ tag add paris -t awesome,delicious
$ tag list fast -m cities
nyc
# to avoid typing '-m cities' for every command
$ export TAG_MODEL=cities

Since models are isolated from one another, third party commandline apps can use tag for their own private tagging purposes.

Motivation

As I wanted to tag my vim knowledge on the commandline, I found its tagging features to greatly exceed that project's scope.

Contributing

See here

Todo

  • Several more tag actions
  • Description and time fields
  • Make storage agnostic
  • Explain how to integrate with other commandline apps