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 ───────────────────────────────────────────────────────────────────────────────────────╮
│ --dotenv --no-dotenv Use dotenv to load .env file. [default: dotenv] │
│ --dotenv-file FILE Optional .env file to use. [default: None] │
│ --var TEXT Directly set variable value. E.g. FOO=BAR. │
│ [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. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────╯
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.0.0.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nocto-1.0.0-py3-none-any.whl
(6.3 kB
view details)
File details
Details for the file nocto-1.0.0.tar.gz.
File metadata
- Download URL: nocto-1.0.0.tar.gz
- Upload date:
- Size: 6.3 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 |
9811c321cf0a33f219e7ebdd231781726842d6763435be74cbbdd441048029f8
|
|
| MD5 |
be9fc84e435fb3b6725f734d314c34fe
|
|
| BLAKE2b-256 |
3df77afede32a1c70b9e75c13994f5ec32a75d3d911b9eca322c5c7eecc87312
|
File details
Details for the file nocto-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nocto-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 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 |
72681c2f8f5a0311512c55e78e273d3f66eac2d04b49e7ddd60a1da768f8aa53
|
|
| MD5 |
f046d7c273caf360f36ed02bdd750cdd
|
|
| BLAKE2b-256 |
04801600fe937d48ef6b18af3abb798681e0425886c6e6895841d0c125f22ff3
|