Skip to content

Use oclif env default for relevant flags #11

@ridem

Description

@ridem

This would basically mean replacing:

SomeCommand.flags = {
  projectId: flags.string({
    char: 'p',
    description: 'Forest project ID',
    required: true,
  })
};

with

SomeCommand.flags = {
  projectId: flags.string({
    char: 'p',
    description: 'Forest project ID',
    required: true,
    env: 'FOREST_PROJECT_ID'
  })
};

Usually, in the scope of one code project where the toolbelt is used, there's also only one Forest project that is tied to it

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions