GitHub - ravijanjam/qkw: Generalizing aliasing to simplify navigation, alias CLI command sequence nuances, annotate, add help-strings, etc (original) (raw)

QKW | Generalizing Aliasing

Simplify navigation, alias CLI command sequence nuances, annotate, add help-strings, etc¶

The purpose of this application is to tag anything with a label and, use it to retrieve the associated data for other applications. Data is stored as:

    <label> :
        <data>

        <help-string,annotation,stdout,etc>

    (or)

    <label>:<data>

Features

For example:

In different linux flavors, one might be repeating identical functionality in different environments. One of the first things a user would like to do is to have their bashrc configured with their personal set of commands.

Sourcing the tags opensuse.bashrc, and ubuntu.bashrc would readily setup your environment. The data for OS specific environments are in the command tables.

Getting Started

Manual contains information about use cases, and all the available options.

QuickStart guide helps you get started with using the basic commands.

Installation (Ubuntu/Debian)

dpkg -i qkw-.deb

or

apt install ./qkw-.deb

git clone https://github.com/ravijanjam/qkw.git cd qkw

apt-get update apt-get install -y git gcc g++ pkg-config cmake make apt-get install -y libsqlite3-dev libyaml-cpp-dev

make build make install make clean

Set up the environment variable:

export QKW_CONFIG=~/.config/qkw/qkw-config.yaml

You can find an example template here.

It's recommended to place userdata.db in the ~/.local/share/qkw/ directory and reference it in the qkw-config.yaml file.

Start the program and check the default tables userdata.db has two tables dir_1, and cmd_1

get version info

qkw -v

list all tables

qkw -T -lA

man pages

man qkw


The basic tables used to store the data

CMD tables

DIR tables

Category : CLI tools, productivity, bash utility, aliasing, labeling, sqlite, g++, commandline, documentation, docstring