Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
======
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.
===========
New release
===========
Update version in cccli/__init__.py