8000 Implement Config Command + AutoUpdates by PeteBishwhip · Pull Request #18 · NativeCLI/NativeCLI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement Config Command + AutoUpdates #18

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

Merged
merged 8 commits into from
Feb 12, 2025

Conversation

PeteBishwhip
Copy link
Member
@PeteBishwhip PeteBishwhip commented Feb 12, 2025

Closes #14

  • Implements new nativecli config [key] [value] command
  • Do not specify key or value, output current config
  • specify --global to define global scope
  • Specify only key to retrieve that key
  • Specify key and value to set.
  • Local scope overrides global scope.

Current available config keys:

updates.check // Check for and display if updates available
updates.auto // Auto-update if check finds an update. check must be true for this to work.

// Coming Soon
append.{command} // e.g. append.new "--dev" - Will always append --dev to any new command without having to type it.

Running nativecli config init or nativecli --global config init creates a file like this with sane defaults in its respective locations:

{
    "updates": {
        "check": true,
        "auto": true
    },
    "append": {
        "new": "",
        "cache:clear": "",
        "check-update": "",
        "self-update": "",
        "update": ""
    }
}

Copy link

Qodana for PHP

It seems all right 👌

No new problems were found according to the checks applied

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@PeteBishwhip PeteBishwhip marked this pull request as ready for review February 12, 2025 15:10
@PeteBishwhip PeteBishwhip merged commit fe90e42 into main Feb 12, 2025
5 checks passed
@PeteBishwhip PeteBishwhip deleted the feature/14-add-config-command branch February 12, 2025 15:12
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.

[Feature] Add global configuration
1 participant
0