-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix(sage/upgrade) option name #389
base: main
Are you sure you want to change the base?
Conversation
create-discord-activity
@robojs/ai
@robojs/ai-voice
create-robo
@robojs/server
@robojs/better-stack
@roboplay/plugin-confessions
@robojs/dev
@roboplay/plugin-gpt
@robojs/maintenance
@robojs/moderation
@roboplay/plugin-poll
@robojs/sync
robo.js
@roboplay/sage
commit: |
@@ -58,7 +58,8 @@ async function upgradeAction(options: UpgradeOptions) { | |||
const update = await checkUpdates(packageJson, config, true) | |||
logger.debug(`Update payload:`, update) | |||
|
|||
await updateRobo(plugins, config, options.autoAccept) | |||
const autoAccept = options.yes | |||
await updateRobo(plugins, config, autoAccept) |
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.
Why not just pass options.yes
inline instead of creating a dedicated variable used only once?
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.
Hey, just thought it would make things clearer, I can pass it as a one liner no issue if required
Please accept and merge this as I have introduced a bug in the previous one, the type inference was not done properly and it introduced autoAccept instead of yes in the command options when parsed, this is wrong thus turning into code never being correctly ran, this fixes it, the option name as to be
yes
in the types.Let me know if you think of a better way of doing it.