detached fdf7d2c

Megre from main

commit
fdf7d2c163fb38f4d936c826edeca4bf1a6382f4
author
bamen · · 2024-08-25 21:39 UTC
committer
bamen · · 2024-08-25 20:07 UTC
merge of
1cdd3c3 + 6008400 · diff against the first parent
signature
unsigned
2 files · +18 -0
R .iscontainer → .iscontainer-bak +0 -0 renamed, 100% similar

renamed, 100% similar

M internal/cli/cmd/deploy.go +18 -0
@@ -143,9 +143,27 @@ func NewDeployCommand(a *cli.App) *cobra.Command {
143143 errCh <- fmt.Errorf("error running progress bar TUI: %w", err)
144144 return
145145 }
146+
146147 // Wait for the deployment goroutine to complete
147148 wg.Wait()
148149
150+ done := false
151+
152+ for !done {
153+ select {
154+ case err := <-errCh:
155+ if err != nil {
156+ fmt.Println(err)
157+ return
158+ }
159+ case <-time.After(1 * time.Second):
160+ // Check if the progress bar is done
161+ if m.Done {
162+ done = true
163+ }
164+ }
165+ }
166+
149167 // Check for errors from the deployment goroutine
150168 select {
151169 case err := <-errCh:
@@ -143,9 +143,27 @@ func NewDeployCommand(a *cli.App) *cobra.Command {
143 errCh <- fmt.Errorf("error running progress bar TUI: %w", err)143 errCh <- fmt.Errorf("error running progress bar TUI: %w", err)
144 return144 return
145 }145 }
146+
146 // Wait for the deployment goroutine to complete147 // Wait for the deployment goroutine to complete
147 wg.Wait()148 wg.Wait()
148 149
150+ done := false
151+
152+ for !done {
153+ select {
154+ case err := <-errCh:
155+ if err != nil {
156+ fmt.Println(err)
157+ return
158+ }
159+ case <-time.After(1 * time.Second):
160+ // Check if the progress bar is done
161+ if m.Done {
162+ done = true
163+ }
164+ }
165+ }
166+
149 // Check for errors from the deployment goroutine167 // Check for errors from the deployment goroutine
150 select {168 select {
151 case err := <-errCh:169 case err := <-errCh:

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close