Commit d2d7924
authored
feat: terramate ui (#2294)
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines:
https://github.com/terramate-io/terramate/blob/main/CONTRIBUTING.md
2. If the PR is unfinished, mark it as draft:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request
3. Please update the PR title using the Conventional Commits convention:
https://www.conventionalcommits.org/en/v1.0.0/
Example: feat: add support for XYZ.
-->
## What this PR does / why we need it:
This PR adds a new command `terramate ui`. It improves `scaffold` and
adds workflows for reconfigure and promote. See changelog for details.
## Does this PR introduce a user-facing change?
<!--
If no, just write "no" in the block below.
If yes, please explain the change and update documentation and the
CHANGELOG.md file accordingly.
-->
```
yes, see changelog
```
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Large new TUI command plus refactors to scaffold/packaging input
evaluation and manifest types may change behavior of bundle discovery,
defaults/options evaluation, and remote bundle loading. While mostly
CLI-facing, it touches core config evaluation paths used by existing
`scaffold` flows.
>
> **Overview**
> **Adds a new interactive command, `terramate ui`,** implemented as a
BubbleTea TUI that guides users through *Create*, *Reconfigure*, and
*Promote* workflows and persists changes as bundle instance YAML files.
>
> Updates existing scaffolding/packaging code to align with the newer
type system and prompt model: local bundle/component discovery now
evaluates metadata during listing, prompt handling moves to
`PromptConfig` (text/multiline/options/multiselect), and input
evaluation paths are refactored to pass `typeschema.EvalContext`
(schemas + eval context) consistently. The manifest model is also
updated to use `manifest.Collection` (instead of `Package`) throughout.
>
> Bumps version to `0.17.0-rc1` and documents the new `terramate ui`
command and `input.prompt { ... }` syntax in `CHANGELOG.md`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f39ea6f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->File tree
46 files changed
+9906
-325
lines changed- commands
- package/create
- scaffold
- ui
- config
- engine
- generate
- hcl
- scaffold/manifest
- typeschema
- ui/tui
- yaml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+9906
-325
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
39 | 58 | | |
40 | 59 | | |
41 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 87 | | |
93 | 88 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
98 | 93 | | |
99 | 94 | | |
100 | 95 | | |
101 | 96 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 97 | | |
108 | 98 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
113 | 103 | | |
114 | 104 | | |
115 | 105 | | |
116 | 106 | | |
117 | 107 | | |
118 | 108 | | |
119 | 109 | | |
120 | | - | |
| 110 | + | |
121 | 111 | | |
122 | 112 | | |
123 | 113 | | |
| |||
0 commit comments