tasc CLI
tasc (TrieService auto-suggest command-line interface) is a CLI for maintaining and managing the lists of terms that are available for auto-complete.
Installing
$ gem install tasc
Alternatively, clone this repo and execute the following commands from within this directory
$ rake
$ gem install tasc
Features
Some of the more basic feeatures are described below to help get you started. To see all available commands simply type
$ tasc
Client Configuration
tasc will create a configuration file of servers you may connect to in your user directory under ~/.tasc/servers.yaml. You can use the config command to display your current config settings or alter them.
$ tasc config
Configuration:
+----------------+--------------------+
| Key | Value |
+----------------+--------------------+
| current_server | dev |
| default | localhost:8080 |
| testsvr | 127.0.0.1:81 |
| foo | bar:80 |
| dev | 10.45.205.204:8080 |
| testingsq | 1.1.02.10:3333 |
| bchee | 10.115.100.77:8080 |
+----------------+--------------------+
List Management
- upload & download a list in a file
- add, update, remove entries from a list
- create, delete, update, show a list
List Configuration
Supports 2 types of lists:
- static - list of pre-determined items, use the upload command
- dynamic - list is generated by usage, use the create command
Dynamic lists are self-maintaining. The TrieService keeps track of each entry's usage and age. You can configure a maximum number of entries that will be maintained. When the max size is reached, the usage and age is used to sort the list and remove the least-frequently used item (LFU).
Building
The included Rakefile will build the tasc gem, e.g.,
$ rake
Using rake (10.0.3)
Using ffi (1.4.0)
Using childprocess (0.3.9)
Using builder (3.2.0)
Using diff-lcs (1.2.1)
Using json (1.7.7)
Using gherkin (2.11.6)
Using multi_json (1.6.1)
Using cucumber (1.2.2)
Using rspec-expectations (2.13.0)
Using aruba (0.5.1)
Using awesome_print (1.1.0)
Using gli (2.5.4)
Using hirb (0.7.0)
Using mime-types (1.21)
Using rdoc (4.0.0)
Using rest-client (1.6.7)
Using wopen3 (0.3)
Using tasc (0.1.0)
Using bundler (1.3.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.
Latest version currently installed. Aborting.
Updating installed gems
Nothing to update
WARNING: licenses is empty
WARNING: no description specified
Successfully built RubyGem
Name: tasc
Version: 0.1.0
File: tasc-0.1.0.gem