Skip to content
README 1.52 KiB
Newer Older
Seblu's avatar
Seblu committed
======
Config
======
cc-cli support FreeDesktop BaseDirectory specifications (http://standards.freedesktop.org/basedir-spec/0.6/)
Your main config is stored in ~/.config/cc-cli/cli (ini file format with section cli)
You can configure all parameter in this file
You will find an example in examples subdirectory in git.

You can set default behaviour with environment variables. The following are recognised:
CC_SERVER, CC_PORT, CC_LOGIN, CC_PASS, CC_DEBUG, CC_PROFILE

To quickly connect to mulptiple servers, you can define profiles.
A profile is an ini config file in ~/.config/cc-cli/ directory with suffix .profile and section profile.
Profiles file are loaded exactly like the main config file.
You can load toto profile by calling cc-cli -P toto
You have to play with the following loading order to do worderful things.

You configuration is loaded in this order:
1 load default config file settings
2 load default config file profile
2 load environment profile
3 load environment settings
4 load argline profile
5 load argline settings

=====
Alias
=====
CLI support aliasing. This is a very useful command substitution
You can use the alias command to set alias.

Setting an alias w, which list online client
alias w "list a&con!=offline&role=client"

Setting an alias vm, which list running vm (and show cpu)
alias vm "list vm&status=running$cpu"

===
TQL
===
You can look in TQL file to see the power of tql.

Seblu's avatar
Seblu committed
===========
New release
===========
Update version in cccli/__init__.py
Seblu's avatar
Seblu committed
Update version in debian/control
Seblu's avatar
Seblu committed
Update version in debian/changelog