You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): add global --without-lockfile preview flag
Add a global, persistent '--without-lockfile' boolean flag that selects a
preview mode in which azldev tracks resolved upstream commits in generated
component configuration instead of per-component lock files. The flag
defaults to false, which keeps azldev's existing lock-file behavior
unchanged.
The registered command set and configuration loading both depend on the
mode, and both happen before cobra parses the command line, so the flag is
hand-parsed up front by App.PreParseGlobalFlags. Only exact
'--without-lockfile' and '--without-lockfile=<value>' tokens are
recognized, and scanning stops at the '--' terminator so positional text is
never mistaken for the flag. The CLI entry point pre-parses the process
arguments before registering commands; Execute pre-parses again so an App
executed directly behaves identically.
The mode is carried on Env via EnvOptions.WithoutLockfile, and the lock
store is not created when the mode is active, so every lock-file consumer
degrades to a no-op without needing mode-specific code.
The flag is part of the CLI surface, so the help, MCP tool-schema, and
usage-error snapshots pick up the new global option.
Refs: microsoft#323
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments