-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add --no-upgrade flag #79
Conversation
apps/cli/src/App.tsx
Outdated
@@ -254,6 +255,7 @@ const App = (props: { | |||
"-p", | |||
`${port}`, | |||
...(token ? ["-t", token] : []), | |||
...(props.upgrade ? [] : ["-n"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does upgrade need to come before token in the args?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they're flags so it shouldn't matter
.option("-s, --simple", "simple mode") | ||
.option("-i, --ipc", "run in ipc mode") | ||
.parse(); | ||
|
||
const { model, language, port, ipc, simple, token } = command.opts(); | ||
const { model, language, port, ipc, simple, token, upgrade } = command.opts(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't it be noUpgrade or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commander is smart enough to handle this automatically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
insane
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the types work automatically too (it parses the string)
4eb323b
to
f7528df
Compare
This is useful in cases where you use a different tool to perform the upgrade, or you did it manually