Simple CLI tool to replace Octopus-style templated variables in file from local environment.
Project description
nocto
Simple CLI tool to replace Octopus-style templated variables in file from local environment.
Simple example:
kubectl apply -f $(nocto deployment.yaml)
Installation
pipx install nocto
# OR
pip install --user nocto
Usage
Usage: nocto [OPTIONS] FILE
Replaces all Octopus-style template variables in `file` and writes it to temporary file.
Returns path to temporary file.
╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────╮
│ * file FILE File in which to replace variables [default: None] [required] │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮
│ --var TEXT Directly set variable value. E.g. FOO=BAR. │
│ [default: (dynamic)] │
│ --dotenv --no-dotenv Use dotenv to load .env file. │
│ [default: dotenv] │
│ --dotenv-file FILE Optional .env file to use. [default: None] │
│ --stdout --no-stdout Write output to stdout instead of temporary │
│ file. │
│ [default: no-stdout] │
│ --test --no-test Only test if local environment has all │
│ required variables, don't replace variables. │
│ [default: no-test] │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy │
│ it or customize the installation. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nocto-1.1.0.tar.gz
(6.4 kB
view details)
Built Distribution
nocto-1.1.0-py3-none-any.whl
(6.4 kB
view details)
File details
Details for the file nocto-1.1.0.tar.gz
.
File metadata
- Download URL: nocto-1.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
61db4b8a4de91ded365e4289329b1b03f260b5fc6baa7433be08c34cf17564a9
|
|
MD5 |
316e0f3f6af968948b2842a4d475b603
|
|
BLAKE2b-256 |
7991e073c9c0a63c538c9c893919bb86dbb7aac3acda62c93a1b7e8be83c0e47
|
File details
Details for the file nocto-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: nocto-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7e83293d04abc0f74f69421befb285350f57be5560ff0b9cc88b158c499e3b43
|
|
MD5 |
5b17a532537a67de20bf867a5b12e71b
|
|
BLAKE2b-256 |
428b53f717f21448b38f3dcbd8d101646083d959f9d7d76e9e0a3d752e92af22
|