lix foo
should invoke lix-foo
#342
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#342
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We know we want a Lix command. We know the Lix command suite will need significant design work. But we know one thing we definitely want:
lix foo
invokeslix-foo
, like git commands do.This is a very easy thing to do, and we can Just Do it
Some question: How do we want to handle e.g.
--store
or other nix-global arguments? Do we pass these as specific environment variables, I guess?That's a good question. Mostly relevant to external commands, because for our commands we can simply use the same CLI logic in every command. In a Rust world we would ideally just offer a Rust crate to magically handle global args logic
since we're kind of targeting nix as the implementation language for a bunch of these as well we'd put a json object with all configs into a single environment variable with a static name shared by all commands. that way we'll get enumerability of settings (which we wouldn't get as easily with one env var per option), and a format that's much better behaved as well
We should probably allow unknown options only if they're namespaced not under [lix] or so. Then we can provide config support for downstream users without regressing our own ability to keep our own stuff correct.
lix command MVP: do the git thingto `lix foo` should invoke `lix-foo`