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

Move environment configuration to the parameter level #196

Open
jasonkuhrt opened this issue Sep 16, 2023 · 0 comments
Open

Move environment configuration to the parameter level #196

jasonkuhrt opened this issue Sep 16, 2023 · 0 comments
Labels
@molt/command type/feat New feature or request

Comments

@jasonkuhrt
Copy link
Owner

Perceived Problem

  • Consider:
    • Prompt has configuration at the parameter level
    • Parameter level configuration allows colocating concerns
  • Notice:
    • Environment configuration is centralized under settings
    • No good reason, even has type safety to allow configuration of named parameters
    • Inconsistent with prompt configuration, which allows defining defaults that parameters will inherit

Ideas / Proposed Solution(s)

  • Parameter level configuration for environment ... .parameter('a', { environment: '...' })
  • No parameter level configuration at command level
@jasonkuhrt jasonkuhrt added type/feat New feature or request @molt/command labels Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@molt/command type/feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant