Skip to content

Detect if c mk docker-env has been run. #19

@allanchau

Description

@allanchau

We should warn the user if c mk docker-env hasn't been run yet.

Something like this could be added as part of the checks the cli does before running a command. Alternatively we could automate it and run c mk docker-env instead of displaying an error?

if (!process.env.DOCKER_HOST) {
    console.error(chalk.red('\nCould not find $DOCKER_HOST, have you run "c mk docker-env" yet?'));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions