Skip to content

Added CLI option for using gadget locally#132

Open
georgephillips wants to merge 6 commits intomainfrom
cli
Open

Added CLI option for using gadget locally#132
georgephillips wants to merge 6 commits intomainfrom
cli

Conversation

@georgephillips
Copy link
Contributor

No description provided.

georgephillips and others added 3 commits March 13, 2026 13:52
Co-authored-by: Ross Phillips <12723297+rphillips-cc@users.noreply.github.com>

function exitOnCancel(value: unknown): void {
if (isCancel(value)) {
p.cancel('Operation cancelled.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
p.cancel('Operation cancelled.');
p.cancel('Operation canceled.');

}

if (options.version) {
console.log('gadget 0.0.0');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questionable line

});

if (options?.schemaUrl) {
return `# yaml-language-server: $schema=${options.schemaUrl}\n${yamlStr}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be replaced with version: in the file itself

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would prefer to see a lot less as in this file


/**
* Converts BuildCommands suggestions into an InitialSiteSettings object,
* picking the first (best) suggestion from each category.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't listed in order of preference, but it's a good start

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.

3 participants