@roots/bud
Version:
Configurable, extensible build tools for modern single and multi-page web applications
28 lines (27 loc) • 898 B
JavaScript
import { jsx as _jsx } from "@roots/bud-support/jsx-runtime";
import BudCommand from '@roots/bud/cli/commands';
import { Command } from '@roots/bud-support/clipanion';
import DisplayEnv from './displayEnv.js';
/**
* bud env command
*/
export default class EnvCommand extends BudCommand {
static paths = [[`env`]];
static usage = Command.Usage({
category: `debug`,
description: `Check environment values`,
details: `\
This command will output the values of the environment variables as processed by bud.js.
You can use this to check that your values are being set correctly.
`,
examples: [[`Check environment values set by bud.js`, `$0 env`]],
});
/**
* Execute command
*/
async execute() {
await this.makeBud();
await this.bud.run();
this.renderStatic(_jsx(DisplayEnv, { bud: this.bud }));
}
}