Compare commits
4
Commits
4d346afd2f
...
v0.4.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
81a24dcee2
|
||
|
|
831031bb48 | ||
|
|
dfe6c9ce7a | ||
|
|
d30e75bd26 |
No files matched your search
@@ -78,7 +78,7 @@ jobs:
|
||||
uses: goreleaser/goreleaser-action@v7
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: v2.18.3
|
||||
version: v2.19.0
|
||||
args: release --clean --release-notes ${{ runner.temp }}/notes.md
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -2,6 +2,12 @@
|
||||
|
||||
Every release of lazysecrets, newest first.
|
||||
|
||||
## v0.4.1 – 2026-10-27
|
||||
|
||||
### Fixed
|
||||
|
||||
- An opened link ends on the secret's details, also when its lists were loaded ([#93](https://git.kebcloud.no/keb/lazysecrets/pulls/93)) ([831031b](https://git.kebcloud.no/keb/lazysecrets/commit/831031bb4863805abc7e272f40d5a1d576364a77))
|
||||
|
||||
## v0.4.0 – 2026-10-19
|
||||
|
||||
### Added
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module git.kebcloud.no/keb/lazysecrets
|
||||
|
||||
go 1.27.2
|
||||
go 1.27.3
|
||||
|
||||
require (
|
||||
charm.land/bubbles/v2 v2.2.1
|
||||
@@ -18,7 +18,7 @@ require (
|
||||
github.com/atotto/clipboard v0.1.4
|
||||
github.com/charmbracelet/x/ansi v0.11.9
|
||||
github.com/charmbracelet/x/exp/golden v0.0.0-20251109135125-8916d276318f
|
||||
github.com/databricks/databricks-sdk-go v0.188.0
|
||||
github.com/databricks/databricks-sdk-go v0.190.0
|
||||
github.com/junegunn/fzf v0.74.5
|
||||
go.yaml.in/yaml/v3 v3.0.5
|
||||
golang.org/x/mod v0.42.0
|
||||
|
||||
@@ -72,8 +72,8 @@ github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSE
|
||||
github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0=
|
||||
github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk=
|
||||
github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
|
||||
github.com/databricks/databricks-sdk-go v0.188.0 h1:1nxBqlctGnPzlReyziG199abHs9cR/KNjsCnSM+oDGA=
|
||||
github.com/databricks/databricks-sdk-go v0.188.0/go.mod h1:udBw6nxkaqa0fgPQ7ZW1kGFkltQncYx+qFJeVFmxtz8=
|
||||
github.com/databricks/databricks-sdk-go v0.190.0 h1:kU2Bq0RGZInRYk35JbdX/w5CFDAUoNyikT5Ze1YdURg=
|
||||
github.com/databricks/databricks-sdk-go v0.190.0/go.mod h1:udBw6nxkaqa0fgPQ7ZW1kGFkltQncYx+qFJeVFmxtz8=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
|
||||
|
||||
@@ -643,7 +643,11 @@ func (m *Model) advanceNav() bool {
|
||||
}
|
||||
}
|
||||
if n.link {
|
||||
m.focus = paneDetail // after: copying acts on the focused pane
|
||||
// After: copying acts on the focused pane. The details describe
|
||||
// the secret: when its lists were loaded already, the open got
|
||||
// here in one update, and the Secrets pane was never the last
|
||||
// left pane in focus.
|
||||
m.lastLeft, m.focus = paneSecrets, paneDetail
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -626,3 +626,17 @@ func TestShareWebPages(t *testing.T) {
|
||||
t.Errorf("secret web page %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
// A link whose lists are there already (a repo's files, or cached) gets
|
||||
// to the secret in one update: the details describe it all the same, not
|
||||
// the repo, with no need to press 3.
|
||||
func TestOpenLinkToRepoSecret(t *testing.T) {
|
||||
t.Parallel()
|
||||
r, _ := ref.Parse("lazysecrets://repo/github.com%2Facme%2Forders-service/docker-compose.yml/api.DB_PASSWORD")
|
||||
d := newDriverOpts(t, Options{Open: &r}, fake.Repos())
|
||||
d.keys("o")
|
||||
o, ok := d.m.detail.Secret()
|
||||
if _, _, s := d.selected(); s != "api.DB_PASSWORD" || d.m.focus != paneDetail || d.m.detailOf() != paneSecrets || !ok || o.Name != "api.DB_PASSWORD" {
|
||||
t.Errorf("selected %q, focus %v describing %v, detail %q", s, d.m.focus, d.m.detailOf(), o.Name)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user