Skip to content

Client config file - #109

Open
plotnick wants to merge 7 commits into
proxy-loginfrom
client-config
Open

plotnick wants to merge 7 commits into
proxy-loginfrom
client-config

Conversation

@plotnick

Copy link
Copy Markdown
Collaborator

Rework the command option handling to support a TOML config file that provides defaults which are overridden by either environment variables or command line arguments. Supports named profiles that override top-level options, e.g.,

permslip-url = "https://your-permslip-server.example"
permslip-key = "Your Signing Key"
profile = "local"

[local]
url = "http://localhost:44444"
permslip-key = "Local Signing Key"

[remote]
url = "https://somewhere-else.example"

Also fix some misc but nearby client issues: make set work properly, add unset, default to opening the REPL with no command, fixup online/offline command handling, and sort out Nexus tunnel reuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
@plotnick
plotnick force-pushed the client-config branch 2 times, most recently from 6e832b2 to 795e7ec Compare October 31, 2026 18:42
@plotnick
plotnick marked this pull request as ready for review October 31, 2026 20:27
plotnick and others added 6 commits October 31, 2026 14:32
The client now reads `sush.toml` from the XDG config directories, or
the file named by `--config`. Keys are option names, and tables are
profiles selected by `--profile`. The command line overrides the
environment, which overrides the file; of two conflicting options,
the one from the weaker source is dropped.

Rename `--permslip` to `--permslip-key`.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant