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

✨ feat: Add rudimentary CLI functionality to check/format files #7

Conversation

masonmark
Copy link
Contributor

Add a CLI interface to the formatter that can check (deno run -R mod.ts **/*.jsonc) or actually format files (deno run -RW mod.ts --write **/*.jsonc).

@masonmark masonmark linked an issue Dec 24, 2024 that may be closed by this pull request
@masonmark masonmark requested a review from Copilot December 24, 2024 17:14

Choose a reason for hiding this comment

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

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

JSONCFormatter.ts:24

  • [nitpick] The method signature could be more descriptive. Consider explicitly defining the default value for the options parameter.
formatFileSync(filePath: string, options = { write: true }, changed: string[] = []): string

README.md:5

  • Corrected spelling mistake: 'initilized' should be 'initialized'.
🤖 2024-12-16: repo initialized by Bottie McBotface [email protected]
@masonmark masonmark merged commit 1dba9c7 into main Dec 24, 2024
1 check passed
@masonmark masonmark deleted the 6-expose-direct-invocation-as-a-cli-program-to-format-existing-files branch December 24, 2024 17:19
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.

Expose direct invocation as a CLI program to format existing files
1 participant