refactor(kvctl): dedicated workspace package, one module per command - #16
Merged
dbud merged 10 commits intoSep 16, 2026
Merged
Conversation
Move kvctl out of packages/web into the new @essayist/kvctl package with its own deno.jsonc. Add a root deno task so it stays runnable as `deno task kvctl` and drop the task from packages/web. Move pluralize and its tests into core and re-export it from @essayist/core so web and kvctl share one implementation. No behavior changes.
Commands live in commands/ and are assembled declaratively in kvctl.ts; kv helpers and sync logic stay in kv.ts and families.ts.
Generalize printEntry into a generic pprint(value) and move it from kv.ts to utils/pprint.ts.
Forces the default local playground KV over REMOTE_URL; an explicit --target still wins. Shared option types live in globals.ts.
Scopes deletion to keys under the prefix; a bare wipe still deletes every key. Also align the list-users email column.
dbud
deleted the
d-bud/ess-40-refactor-kvctl-into-a-dedicated-workspace-package
branch
September 16, 2026 13:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves kvctl out of packages/web into its own @essayist/kvctl package and splits it into per-command modules (commands/), with kv helpers in kv.ts, sync logic in families.ts, and pprint in utils/, assembled declaratively in kvctl.ts.
Also adds a global --local option and an optional prefix to wipe.
Closes ESS-40