Skip to content

Conversation

@renejfc
Copy link
Owner

@renejfc renejfc commented Feb 26, 2025

No description provided.

@github-actions
Copy link

🧪 CLI Preview Build.

Try this version:

bun add -g https://pkg.pr.new/renejfc/conmmit@7
v1 — 65c13b0

@renejfc renejfc merged commit 550cdfb into main Feb 26, 2025
6 checks passed
@renejfc renejfc deleted the refactor/new-args-pars branch February 26, 2025 23:30
@renejfc renejfc requested a review from Copilot April 6, 2025 01:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

src/main.ts:47

  • [nitpick] The flag 'add-all' is accessed using bracket notation due to its hyphenated name. Consider using an alias (e.g., 'addAll') in the configuration to allow a more consistent dot notation access across the codebase.
enabled: args["add-all"],

const SHORT_PREFIX = "-"
export function parseArgs<const T extends ArgConfig[]>(argConfigs: T): ParsedArgs<T> {
const argv = process.argv.slice(2)
console.log(argv)
Copy link

Copilot AI Apr 6, 2025

Choose a reason for hiding this comment

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

Debug logging is present in the production argument parsing code. It is recommended to remove or disable this log before deployment to prevent leaking internal information.

Suggested change
console.log(argv)

Copilot uses AI. Check for mistakes.

export const initArgs = () => {
const args = parseArgs(argsConfigs)
console.log(args)
Copy link

Copilot AI Apr 6, 2025

Choose a reason for hiding this comment

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

A console log statement remains in the initArgs function, which might be unintended for production usage. Consider removing it to clean up the output.

Suggested change
console.log(args)

Copilot uses AI. Check for mistakes.
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