TUI for OpenTofu provider registry.
Project description
tofuref
TUI for OpenTofu provider registry.
Installation
pipx install tofuref
Usage
Run the application:
tofuref
Controls
Actions
| keybindings | action |
|---|---|
s, / |
search in the context of providers and resources |
u, y |
Context aware copying (using a provider/resource) |
v |
change active provider version |
q, ctrl+q |
quit tofuref |
t |
toggle table of contents from content window |
ctrl+l |
display log window |
Focus windows
| keybindings | action |
|---|---|
tab |
focus next window |
shift+tab |
focus previous window |
p |
focus providers window |
r |
focus resources window |
c |
focus content window |
f |
toggle fullscreen mode |
Navigate in a window
Navigate with arrows/page up/page down/home/end or your mouse.
VIM keybindings should be also supported in a limited capacity.
Configuration
Default configuration can be overridden by a config file, which can be overridden with env variables.
Config file locations:
- Unix:
~/.config/tofuref/config.toml - macOS:
~/Library/Application Support"/tofuref/config.toml - Windows:
%USERPROFILE%\AppData\Local\tofuref\tofuref\config.toml
General
Put these as simple key=value in your config.toml.
| name | description | type | default | env |
|---|---|---|---|---|
| http_request_timeout | Timeout for all http requests (in seconds) | float | 3.0 | TOFUREF_HTTP_REQUEST_TIMEOUT |
| index_cache_duration_days | How long the provider index should be cached for (in days) | int | 31 | TOFUREF_INDEX_CACHE_DURATION_DAYS |
| fullscreen_init_threshold | Threshold of terminal width under which tofuref should start in fullscreen mode | int | 125 | TOFUREF_FULLSCREEN_INIT_THRESHOLD |
Theme
These options belong to a toml section, [theme].
| name | description | type | default | env |
|---|---|---|---|---|
| ui | Colorscheme for the UI, inspect available themes through command palette (^p) Change theme command |
string | textual-dark (or TEXTUAL_THEME env) |
TOFUREF_THEME_UI |
| codeblocks | The pygments style for code blocks | string | material | TOFUREF_THEME_CODEBLOCKS |
| borders_style | The borders to use for windows, list and showcase of available here | string | ascii | TOFUREF_THEME_BORDERS_STYLE |
Example file
Author's configuration:
fullscreen_init_threshold = 160
[theme]
ui = "monokai"
codeblocks = "monokai"
borders_style = "vkey"
Upgrade
pipx upgrade tofuref
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
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
File details
Details for the file tofuref-1.2.0.tar.gz.
File metadata
- Download URL: tofuref-1.2.0.tar.gz
- Upload date:
- Size: 185.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c94b4b66fb10263ae0ae1654aae92d56a8421446b58241013f255ca1035e28f9
|
|
| MD5 |
799c1a4d76e9f32d91d1d9e7e2d5c019
|
|
| BLAKE2b-256 |
406d156fc65898d9a75f88f7f679b91b2b92d3d51a8984c71db7c947166f1a6f
|
Provenance
The following attestation bundles were made for tofuref-1.2.0.tar.gz:
Publisher:
python-publish.yml on djetelina/tofuref
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tofuref-1.2.0.tar.gz -
Subject digest:
c94b4b66fb10263ae0ae1654aae92d56a8421446b58241013f255ca1035e28f9 - Sigstore transparency entry: 230397554
- Sigstore integration time:
-
Permalink:
djetelina/tofuref@f56c005a5277d701824df5e763084d3da97893f5 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/djetelina
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f56c005a5277d701824df5e763084d3da97893f5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file tofuref-1.2.0-py3-none-any.whl.
File metadata
- Download URL: tofuref-1.2.0-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a94b81352dcbd61a1e305f82a86b1ff9d7061571c18cb721e9dae94756f44404
|
|
| MD5 |
af7710939a563d3f35bf4fdb3faccaef
|
|
| BLAKE2b-256 |
9e7db70bc8a758ef00a95e85e75ce5163cfd4459a254d955e1dbb915e7a16569
|
Provenance
The following attestation bundles were made for tofuref-1.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on djetelina/tofuref
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tofuref-1.2.0-py3-none-any.whl -
Subject digest:
a94b81352dcbd61a1e305f82a86b1ff9d7061571c18cb721e9dae94756f44404 - Sigstore transparency entry: 230397556
- Sigstore integration time:
-
Permalink:
djetelina/tofuref@f56c005a5277d701824df5e763084d3da97893f5 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/djetelina
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f56c005a5277d701824df5e763084d3da97893f5 -
Trigger Event:
release
-
Statement type: