Skip to content

env field for options and flags #34

@github-actions

Description

@github-actions

Name the environment variable to use as default value on init, if available

* TODO `env` field for options and flags
* Name the environment variable to use as default value on init, if available
*/

import { ConfigMetaSet, ConfigSet, ConfigType } from 'jackspeak';

/*
 * TODO `env` field for options and flags
 *   Name the environment variable to use as default value on init, if available
 */

/*
 * TODO `secret` (or similar) field for options and flags
 *   Indicate that the actual default value should not be displayed in usage (e.g. for an `env` value)
 */

type MetaSet<T extends ConfigType> = {
  value: ConfigMetaSet<T, false>;
  list: ConfigMetaSet<T, true>;

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions