microsoft / microsoft/lage

Error on invalid / undefined commands

Open
#84 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
816
Forks
88
PR merge metrics
No merged PRs in 30d

Description

I've noticed sometimes when I typo lage doesn't fail and confuses me for a few seconds:

D:\git\ooui\dev (jagore/fix-nuget-copy-error)
λ lage bulid
info Lage task runner - let's make it
info � Summary
info
info Nothing has been run.
info ----------------------------------------------
info Took a total of 0.01s to complete

Similar to this change to error on circular deps, I think lage should error when undefined commands are executed to make sure pipelines fail on typos, etc.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the change for circular dependency errors in PR 83, then trace where the lage command handles an undefined command such as bulid. Done means an invalid command fails instead of reporting that nothing was run, with behavior covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.