Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Nazeofel
Copy link
Contributor

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.

Copy link

pkg-pr-new bot commented Nov 29, 2024

Open in Stackblitz

create-discord-activity

npm i https://pkg.pr.new/Wave-Play/robo.js/create-discord-activity@389

@robojs/ai

npm i https://pkg.pr.new/Wave-Play/robo.js/@robojs/ai@389

@robojs/ai-voice

npm i https://pkg.pr.new/Wave-Play/robo.js/@robojs/ai-voice@389

create-robo

npm i https://pkg.pr.new/Wave-Play/robo.js/create-robo@389

@robojs/server

npm i https://pkg.pr.new/Wave-Play/robo.js/@robojs/server@389

@robojs/better-stack

npm i https://pkg.pr.new/Wave-Play/robo.js/@robojs/better-stack@389

@roboplay/plugin-confessions

npm i https://pkg.pr.new/Wave-Play/robo.js/@roboplay/plugin-confessions@389

@robojs/dev

npm i https://pkg.pr.new/Wave-Play/robo.js/@robojs/dev@389

@roboplay/plugin-gpt

npm i https://pkg.pr.new/Wave-Play/robo.js/@roboplay/plugin-gpt@389

@robojs/maintenance

npm i https://pkg.pr.new/Wave-Play/robo.js/@robojs/maintenance@389

@robojs/moderation

npm i https://pkg.pr.new/Wave-Play/robo.js/@robojs/moderation@389

@roboplay/plugin-poll

npm i https://pkg.pr.new/Wave-Play/robo.js/@roboplay/plugin-poll@389

@robojs/sync

npm i https://pkg.pr.new/Wave-Play/robo.js/@robojs/sync@389

robo.js

npm i https://pkg.pr.new/Wave-Play/robo.js@389

@roboplay/sage

npm i https://pkg.pr.new/Wave-Play/robo.js/@roboplay/sage@389

commit: 858523e

@@ -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)
Copy link
Member

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?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants