Skip to content

Commit

Permalink
improvement(core): crucial enhancements to command
Browse files Browse the repository at this point in the history
edvald committed Jul 19, 2019
1 parent 5022175 commit 4dbdc15
Showing 4 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions docs/reference/commands.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 0 additions & 2 deletions garden-service/src/commands/commands.ts
Original file line number Diff line number Diff line change
@@ -29,15 +29,13 @@ 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(),
new CallCommand(),
new DeleteCommand(),
new DeployCommand(),
new DevCommand(),
new EysiCommand(),
new ExecCommand(),
new GetCommand(),
new InitCommand(),
Original file line number Diff line number Diff line change
@@ -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 } }
2 changes: 2 additions & 0 deletions garden-service/src/commands/get/get.ts
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 4dbdc15

Please sign in to comment.