Skip to content

refactor: update CLI options to use COMPODOC_DEFAULTS for default values#1607

Merged
tcorral merged 2 commits intodevelopfrom
feat/add-compodoc-default
Aug 28, 2025
Merged

refactor: update CLI options to use COMPODOC_DEFAULTS for default values#1607
tcorral merged 2 commits intodevelopfrom
feat/add-compodoc-default

Conversation

@tcorral
Copy link
Collaborator

@tcorral tcorral commented Aug 27, 2025

This commit modifies the CLI application to utilize the COMPODOC_DEFAULTS object for default values of various options, ensuring consistency and easier management of default settings. The changes include updating options for silent mode, serving, watching, and several other flags to reference the defaults defined in the defaults.ts file.

tomas_backbase added 2 commits August 27, 2025 13:31
This commit modifies the CLI application to utilize the COMPODOC_DEFAULTS object for default values of various options, ensuring consistency and easier management of default settings. The changes include updating options for silent mode, serving, watching, and several other flags to reference the defaults defined in the defaults.ts file.
@sonarqubecloud
Copy link

@tcorral tcorral requested a review from Copilot August 28, 2025 12:44
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.

Pull Request Overview

This PR refactors the CLI application to centralize default values by utilizing the COMPODOC_DEFAULTS object instead of hardcoded values throughout the CLI options. This improves maintainability by having a single source of truth for default settings.

Key changes:

  • Added new default values to the COMPODOC_DEFAULTS object (disableSearch, hideGenerator, hideDarkModeToggle, minimal, silent, serve, watch)
  • Updated CLI option definitions to reference COMPODOC_DEFAULTS instead of hardcoded false values
  • Ensured consistency across all CLI options by using centralized default management

Reviewed Changes

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

File Description
src/utils/defaults.ts Added missing default values for CLI options that were previously hardcoded
src/index-cli.ts Updated CLI option definitions to use COMPODOC_DEFAULTS instead of hardcoded values

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@tcorral tcorral merged commit 81f58a7 into develop Aug 28, 2025
9 checks passed
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