Utility suite
Project description
Configuration files
Every configuration should be ini-compatible, i.e., of the form <section>.<key>=<value>
.
Usually, configuration has a name <name>
. Configuration objects look for configuration files of ini
format (no extension, .ini
extension), json
format (.json
,.js
extension) and yaml
format (.yaml
, .yml
extension) in the following places:
- System in
$PREFIX/etc/<name><ext>
- Global in
~/.<name><ext>
- Local in
$(git rev-parse --git-dir)/<name><ext>
Avoid having two configuration files with two different extensions in the same location. The choice of file will not be guaranteed. Configuration files are merged for reading, starting with System, then Global, followed by Local. This is the same priority order as with git
. In the Configuration object, they are however kept separate which allows to modify separately the three configurations.
Configuration formats
Here are short examples of configuration files in ini
, json
then yaml
format. Remember that the DEFAULT
section is not always available.
[DEFAULT]
foo=bar
[server]
name=example.com
{
"DEFAULT": {
"foo": "bar"
},
"server": {
"name": "example.com"
}
}
DEFAULT:
foo: bar
server:
name: example.com
Configuration content
When there is a DEFAULT
section in the configuration, you are usually allowed to have a section with any name and the same structure as the DEFAULT
one.
When available, the @secrets
key is parsed into a <protocol>://<entry>
to fetch secrets. Right now, the only supported secrets holder is pass
.
Available binaries:
Transmission
Help is available via transmission -h
.
Configuration structure:
[DEFAULT]
;Required if url, username or password is not provided.
@secrets=pass://my-pass-entry
url=https://torrent.example.com/transmission/rpc
username=john
password=b278cdbd95e67b27
;Defaults to the hostname of the url
host=ssh.example.com
;Defaults to none
volume=/srv/torrent/data:/downloads
;Defaults to $PWD
downloads=/media/john/drive/Downloads
Git Piptag
Help is available via git piptag -h
.
There is no configuration. Git Piptag parses the tags of the git tree to get the latest version tag, and try to apply the given new version tag or to suggest a version tag.
The best way to get used to it is to actually test it weth git piptag -n
(dry run mode) in several situations.
Gitlab
Right now only gitlab me
is available. Try gitlab -h
, though.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for neze-webcli-0.2.post0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f1239897c10eefa588de15bea58f36380575b1c2935d00922093177706adbf7 |
|
MD5 | 5c647d7ab911a3302a551a2ac715e4bc |
|
BLAKE2b-256 | fda65dce43b550bd2ade883e63b55dfc3cdc9ee556dffd16d527e9260f350790 |
Hashes for neze_webcli-0.2.post0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862a520e387a70a92730b823d24b44d0c82ca0763eac66520c8ece4411aa6b97 |
|
MD5 | 8badf5e189cba2c9c6426578ac4093b9 |
|
BLAKE2b-256 | 82e4796b1ac92d096d6779bc24c471e248cc0b99c5c7ed4514e8de41226df57f |