diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-17 01:37:24 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-17 01:37:24 +0200 |
| commit | f5807d9f3a6c96e70912b61fac17120f412b5782 (patch) | |
| tree | d6928795e06b1af000ffba2ae50bb6f8f7b72685 /paths/path.go | |
| parent | 7984fd9beaa7c903288142818cb328c584a139a5 (diff) | |
* 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
Diffstat (limited to 'paths/path.go')
| -rw-r--r-- | paths/path.go | 20 |
1 files changed, 20 insertions, 0 deletions
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 "<empty>" + } + return *p.Val +} + +func Empty() *Path { + return &Path{} +} |
