Skip to content

feat: add short aliases (pm, packageManager, lang, lang, cache) for configuration keys#93

Merged
IT-WIBRC merged 1 commit intodevelopfrom
feat/config-get-set-short-keys
Oct 3, 2025
Merged

feat: add short aliases (pm, packageManager, lang, lang, cache) for configuration keys#93
IT-WIBRC merged 1 commit intodevelopfrom
feat/config-get-set-short-keys

Conversation

@IT-WIBRC
Copy link
Owner

@IT-WIBRC IT-WIBRC commented Oct 3, 2025

Description

This PR introduces short aliases for core configuration properties to make the dk config command faster and more ergonomic.

The following short keys are now supported for both reading (dk config [keys...]) and setting (dk config --set):

Full Key Short Alias
defaultPackageManager pm, packageManager
language lang, lg
cacheStrategy cache

Key Changes:

  • Configuration Aliases: Enables setting and getting configuration values using short aliases (e.g., dk config pm pnpm).
  • Testing: Adds new integration tests to ensure full coverage of the new short keys in the dk config command.
  • Documentation: Updates the French and English translation files and the README.md to clearly document the supported keys and their aliases.
  • Cleanup: Removes the redundant dk config cache command documentation, as cache management is now fully integrated into dk config update.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • New and existing feature support current supported languages
  • Any dependent changes have been merged and published in downstream modules

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2025

Coverage Report for ./packages/devkit

Status Category Percentage Covered / Total
🟢 Lines 92.75% (🎯 85%) 3469 / 3740
🟢 Statements 92.75% (🎯 85%) 3469 / 3740
🟢 Functions 95.75% (🎯 90%) 158 / 165
🟢 Branches 93.58% (🎯 85%) 758 / 810
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/devkit/src/commands/config/index.ts 100% 100% 100% 100%
packages/devkit/src/commands/config/logic.ts 97.56% 95% 100% 97.56% 90-91, 141
packages/devkit/src/commands/config/utils.ts 100% 90.9% 100% 100%
packages/devkit/src/commands/config/get/index.ts 100% 100% 100% 100%
packages/devkit/src/commands/config/set/index.ts 100% 100% 100% 100%
Generated in workflow #275 for commit 68fe0ba by the Vitest Coverage Report Action

@IT-WIBRC IT-WIBRC merged commit 0e259c3 into develop Oct 3, 2025
2 checks passed
@github-actions github-actions bot deleted the feat/config-get-set-short-keys branch October 3, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant