Skip to content

Client config file - #109

Merged
plotnick merged 7 commits into
proxy-loginfrom
client-config
Nov 6, 2026
Merged

plotnick merged 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.

@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
plotnick force-pushed the client-config branch 2 times, most recently from 83256e8 to 1929474 Compare November 4, 2026 00:10
plotnick and others added 7 commits November 4, 2026 12:29
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
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>
@plotnick
plotnick added this pull request to stack #114 November 6, 2026 20:00
@plotnick
plotnick merged commit 26854d1 into main Nov 6, 2026
7 checks passed
@plotnick
plotnick deleted the client-config branch November 6, 2026 20:02
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