Add --dry-run support to `app create` and `tenant create`, add logging to git, github, and filesystem operations. Add Wizard component. Rework bubbletea component hierarchy #44
Global --dry-run flag to prevent write operations from occurring (git ref changes, github PRs etc.). The following are supported:
✅ app create
✅ tenant create
❌ p2p
❌ env connect
Running an unsupported command with the --dry-run flag will panic.
Wizard replaces the Spinner component, you can for add Tasks which are shown as the current, and logging intermediate steps (these are grouped under the most recent task currently). This component allows other components to be embedded inside it, this facilitates input collection without leaving the existing tea.Program this prevents some rendering issues.
Global --log-level flag - logging is handled by the zerolog library, this logs to ./corectl.log when the flag is set.
⚠️ currently logging via the Wizard component is not filtered by the global loglevel flag, it might be desirable to differentiate between what you want displayed, and what you want to log for debugging purposes.
Add reflow library for rendering multiline text within bubbletea (same author as muesli/termenv which we already use)
Very nice :) . Well explained . My general comment is to add more usefull logs so everyone can understand where is doing what . I will test it locally and I will finalize my review
This PR adds:
--dry-run
flag to preventwrite
operations from occurring (git ref changes, github PRs etc.). The following are supported:--dry-run
flag willpanic
.tea.Program
this prevents some rendering issues.--log-level
flag - logging is handled by the zerolog library, this logs to./corectl.log
when the flag is set. ⚠️ currently logging via the Wizard component is not filtered by the global loglevel flag, it might be desirable to differentiate between what you want displayed, and what you want to log for debugging purposes.