diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-22 09:28:52 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-22 09:28:52 +0200 |
| commit | 7ae8855a075773c50ab8db8ee65bbfa9710f140e (patch) | |
| tree | 590496d0883dfeb928e660345325e9a725688b79 /internal | |
| parent | dc2d267244d6dd9d991207fe193e987b6477c415 (diff) | |
Add Go project scaffold (task 352)
- go.mod with module codeberg.org/snonux/geheim (go 1.22, mage dep)
- Magefile.go with Build, Test, Install, Uninstall targets
- cmd/geheim/main.go delegating to internal/cli
- Stub packages: cli, version, config, crypto, git, store, clipboard, shell
- go.sum generated; binary confirmed to build via mage build
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/cli/cli.go | 9 | ||||
| -rw-r--r-- | internal/clipboard/clipboard.go | 2 | ||||
| -rw-r--r-- | internal/config/config.go | 5 | ||||
| -rw-r--r-- | internal/crypto/crypto.go | 2 | ||||
| -rw-r--r-- | internal/git/git.go | 2 | ||||
| -rw-r--r-- | internal/shell/shell.go | 2 | ||||
| -rw-r--r-- | internal/store/data.go | 2 | ||||
| -rw-r--r-- | internal/store/index.go | 2 | ||||
| -rw-r--r-- | internal/store/store.go | 2 | ||||
| -rw-r--r-- | internal/version/version.go | 5 |
10 files changed, 33 insertions, 0 deletions
diff --git a/internal/cli/cli.go b/internal/cli/cli.go new file mode 100644 index 0000000..4b4e8c5 --- /dev/null +++ b/internal/cli/cli.go @@ -0,0 +1,9 @@ +// Package cli implements the command-line interface for geheim. +// Run() is called by main and returns an exit code. +package cli + +// Run is the top-level entry point for the CLI. +// Returns 0 on success, non-zero on error. +func Run() int { + return 0 +} diff --git a/internal/clipboard/clipboard.go b/internal/clipboard/clipboard.go new file mode 100644 index 0000000..6635537 --- /dev/null +++ b/internal/clipboard/clipboard.go @@ -0,0 +1,2 @@ +// Package clipboard provides clipboard read/write access for geheim. +package clipboard diff --git a/internal/config/config.go b/internal/config/config.go new file mode 100644 index 0000000..3474b73 --- /dev/null +++ b/internal/config/config.go @@ -0,0 +1,5 @@ +// Package config handles loading and storing geheim configuration. +package config + +// Config holds application-wide configuration values. +type Config struct{} diff --git a/internal/crypto/crypto.go b/internal/crypto/crypto.go new file mode 100644 index 0000000..0e985f4 --- /dev/null +++ b/internal/crypto/crypto.go @@ -0,0 +1,2 @@ +// Package crypto provides encryption and decryption primitives for geheim. +package crypto diff --git a/internal/git/git.go b/internal/git/git.go new file mode 100644 index 0000000..6d29fda --- /dev/null +++ b/internal/git/git.go @@ -0,0 +1,2 @@ +// Package git wraps git operations used by geheim to manage the secret store. +package git diff --git a/internal/shell/shell.go b/internal/shell/shell.go new file mode 100644 index 0000000..2c8739b --- /dev/null +++ b/internal/shell/shell.go @@ -0,0 +1,2 @@ +// Package shell provides interactive shell and readline integration for geheim. +package shell diff --git a/internal/store/data.go b/internal/store/data.go new file mode 100644 index 0000000..fb5547d --- /dev/null +++ b/internal/store/data.go @@ -0,0 +1,2 @@ +// data.go handles reading and writing individual secret data blobs. +package store diff --git a/internal/store/index.go b/internal/store/index.go new file mode 100644 index 0000000..cd80dc5 --- /dev/null +++ b/internal/store/index.go @@ -0,0 +1,2 @@ +// index.go manages the index of entries within the secret store. +package store diff --git a/internal/store/store.go b/internal/store/store.go new file mode 100644 index 0000000..3ebde40 --- /dev/null +++ b/internal/store/store.go @@ -0,0 +1,2 @@ +// Package store manages the geheim secret store on disk. +package store diff --git a/internal/version/version.go b/internal/version/version.go new file mode 100644 index 0000000..c7defb0 --- /dev/null +++ b/internal/version/version.go @@ -0,0 +1,5 @@ +// Package version holds the application version string. +package version + +// Version is the current release version of geheim. +const Version = "0.0.0" |
