detached 96c369e

load proxy url from .env

commit
96c369e94cbbdabb3eaa81478cee2b8959b9bde2
author
bnema · · 2024-04-19 06:41 UTC
parent
10f32d8
signature
unsigned
refs
tag: 0.1.1tag: 0.1.11
1 file · +4 -1
M cmd/cli/main.go +4 -1
@@ -10,6 +10,9 @@ import (
1010 "github.com/bnema/gordon/internal/common"
1111 "github.com/bnema/gordon/internal/server"
1212 "github.com/spf13/cobra"
13+ // env auto load
14+ _ "github.com/joho/godotenv/autoload"
15+ "os"
1316 )
1417
1518 var (
@@ -39,7 +42,7 @@ func main() {
3942 BuildVersion: build,
4043 BuildCommit: commit,
4144 BuildDate: date,
42- ProxyURL: "https://gordon-proxy.bnema.dev",
45+ ProxyURL: os.Getenv("PROXY_URL"),
4346 }
4447
4548 a, err := cli.NewClientApp(buildInfo)
@@ -10,6 +10,9 @@ import (
10 "github.com/bnema/gordon/internal/common"10 "github.com/bnema/gordon/internal/common"
11 "github.com/bnema/gordon/internal/server"11 "github.com/bnema/gordon/internal/server"
12 "github.com/spf13/cobra"12 "github.com/spf13/cobra"
13+ // env auto load
14+ _ "github.com/joho/godotenv/autoload"
15+ "os"
13 )16 )
14 17
15 var (18 var (
@@ -39,7 +42,7 @@ func main() {
39 BuildVersion: build,42 BuildVersion: build,
40 BuildCommit: commit,43 BuildCommit: commit,
41 BuildDate: date,44 BuildDate: date,
42- ProxyURL: "https://gordon-proxy.bnema.dev",45+ ProxyURL: os.Getenv("PROXY_URL"),
43 }46 }
44 47
45 a, err := cli.NewClientApp(buildInfo)48 a, err := cli.NewClientApp(buildInfo)

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