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(cli): make the scan command npx compatible #92

Merged
merged 3 commits into from
Sep 16, 2024
Merged

Conversation

argl
Copy link
Contributor

@argl argl commented Sep 16, 2024

Description

Move the CLI shell script to a .js implementation, make it compatible with npx and move it to bin.

Motivation

The CLI command should be installable globally.

@argl argl requested review from mdn-bot and a team as code owners September 16, 2024 15:10
@argl argl changed the title Mp 1502 cli installation fix(cli): make the scan command npx compatible Sep 16, 2024
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

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

Nice! Tested locally, works for me, one tiny nit:

bin/scan.js Outdated
.name("observatory")
.description("CLI for the MDN HTTP Observatory")
.version("1.0.0");
const name = "mdn-http-observatory-scan";
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps const NAME = as it's a constant?

@argl argl merged commit 6d66d0e into main Sep 16, 2024
4 checks passed
@argl argl deleted the MP-1502-cli-installation branch September 16, 2024 18:50
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