From f5807d9f3a6c96e70912b61fac17120f412b5782 Mon Sep 17 00:00:00 2001 From: ewy Date: Sun, 17 May 2026 01:37:24 +0200 Subject: * integration tests with a pik target to run them * add abstraction for paths to facilitate unit tests * flesh out completion (--install-completion) * do sync init before stateless modes so list knows more --- paths/path.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 paths/path.go (limited to 'paths/path.go') diff --git a/paths/path.go b/paths/path.go new file mode 100644 index 0000000..5706d29 --- /dev/null +++ b/paths/path.go @@ -0,0 +1,20 @@ +package paths + +type Path struct { + Val *string +} + +func (p *Path) Set(val string) { + p.Val = &val +} + +func (p *Path) String() string { + if p == nil || p.Val == nil { + return "" + } + return *p.Val +} + +func Empty() *Path { + return &Path{} +} -- cgit v1.3.1