diff --git a/docs/reference/commands.md b/docs/reference/commands.md index 92a9ede68a..05735bd341 100644 --- a/docs/reference/commands.md +++ b/docs/reference/commands.md @@ -207,16 +207,6 @@ Examples: | `--skip-tests` | | boolean | Disable running the tests. | `--test-names` | `-tn` | array:string | Filter the tests to run by test name across all modules (leave unset to run all tests). Accepts glob patterns (e.g. integ* would run both 'integ' and 'integration'). -### garden eysi - -Meet our CTO. - -Just try it. - -##### Usage - - garden eysi - ### garden exec Executes a command (such as an interactive shell) in a running service. @@ -265,6 +255,16 @@ Outputs the fully resolved configuration for this project and environment. garden get config +### garden get eysi + +Meet our CTO. + +Just try it. + +##### Usage + + garden get eysi + ### garden get secret Get a secret from the environment. diff --git a/garden-service/src/commands/commands.ts b/garden-service/src/commands/commands.ts index 3619ab4785..4dcfbe35b0 100644 --- a/garden-service/src/commands/commands.ts +++ b/garden-service/src/commands/commands.ts @@ -29,7 +29,6 @@ import { ServeCommand } from "./serve" import { OptionsCommand } from "./options" import { ConfigCommand } from "./config/config" import { PluginsCommand } from "./plugins" -import { EysiCommand } from "./eysi" export const coreCommands: Command[] = [ new BuildCommand(), @@ -37,7 +36,6 @@ export const coreCommands: Command[] = [ new DeleteCommand(), new DeployCommand(), new DevCommand(), - new EysiCommand(), new ExecCommand(), new GetCommand(), new InitCommand(), diff --git a/garden-service/src/commands/eysi.ts b/garden-service/src/commands/get/get-eysi.ts similarity index 82% rename from garden-service/src/commands/eysi.ts rename to garden-service/src/commands/get/get-eysi.ts index 7bd8c811dc..79a9a380cd 100644 --- a/garden-service/src/commands/eysi.ts +++ b/garden-service/src/commands/get/get-eysi.ts @@ -9,14 +9,14 @@ import { Command, CommandResult, -} from "./base" +} from "../base" import dedent = require("dedent") import { readFile } from "fs-extra" -import { STATIC_DIR } from "../constants" +import { STATIC_DIR } from "../../constants" import { join } from "path" import execa = require("execa") -export class EysiCommand extends Command { +export class GetEysiCommand extends Command { name = "eysi" help = "Meet our CTO." @@ -32,7 +32,7 @@ export class EysiCommand extends Command { try { // Close enough. - await execa("say", ["Hello", "I", "am", "Aysey"]) + await execa("say", ["Hello", ",", "I", "am", "Aysey"]) } catch (_) { } return { result: { eysi } } diff --git a/garden-service/src/commands/get/get.ts b/garden-service/src/commands/get/get.ts index 781d1babbb..654c50c5f5 100644 --- a/garden-service/src/commands/get/get.ts +++ b/garden-service/src/commands/get/get.ts @@ -9,6 +9,7 @@ import { Command } from "../base" import { GetGraphCommand } from "./get-graph" import { GetConfigCommand } from "./get-config" +import { GetEysiCommand } from "./get-eysi" import { GetSecretCommand } from "./get-secret" import { GetStatusCommand } from "./get-status" import { GetTasksCommand } from "./get-tasks" @@ -23,6 +24,7 @@ export class GetCommand extends Command { subCommands = [ GetGraphCommand, GetConfigCommand, + GetEysiCommand, GetSecretCommand, GetStatusCommand, GetTasksCommand,