Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yukaii/tag-manager

a simple CLI file tagger
https://github.com/yukaii/tag-manager

Last synced: 13 days ago
JSON representation

a simple CLI file tagger

Awesome Lists containing this project

README

        

# Simple File Tag Manager using Ruby and Clamp

## Overview
Inspire by my future Software Engineering Course Final Project(read the **Use Requirement** [here](https://hackpad.com/-Use-Requirement-RzuVlOBv6S9))

The Project should be written in JAVA (WTF). However, I made a CLI version, implementing basic operations, including:

* add tag to files
* remove tag from files
* list current tags
* list all files with tags
* search file by tag name

Powered by a smart CLI program framework, [clamp by mdub](https://github.com/mdub/clamp)

## Dependency

Use Bundler.

bundle intall

## Usage

![demo](1.png)

You can type `./tagmgr.rb --help` to see how to use.

Here are some examples:

```bash
# initialize our database
./tagmgr.rb init

# add 'japanese' tag to files
./tagmgr.rb add --tag japanese Chinatsu_Izawa_01.png Kaera_Uehara_01.png

# list files with tag names
./tagmgr.rb list

# search by tag name
./tagmgr.rb search --tag japanese

# remove specific tag from files
./tagmgr.rb remove --tag japanese Chinatsu_Izawa_01.png Kaera_Uehara_01.png

# list used tags
./tagmgr.rb list tags
```