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(commands): give ctx.fail a help flag and migrate commands off $errors
ctx.fail always printed the usage help suggestion, so a command failing
over the environment or the project state - a missing platform, a file
that already exists - either misreported it as a command-line mistake
or kept injecting the errors service for the plain form, which most of
the built-ins did.
ctx.fail(message, options?) takes a CommandFailOptions bag; help
defaults to true and { help: false } fails without the suggestion. The
type is exported from nativescript/contracts. The built-in commands
now fail through their context: failWithHelp calls became ctx.fail and
plain fail calls became ctx.fail with help off, and the errors service
injection went with them where nothing else used it. Calls that pass
format arguments or an error object stay on the errors service.
0 commit comments