Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement(core): crucial enhancements to command #1001

Merged
merged 2 commits into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/reference/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions garden-service/src/commands/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand All @@ -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 } }
Expand Down
2 changes: 2 additions & 0 deletions garden-service/src/commands/get/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -23,6 +24,7 @@ export class GetCommand extends Command {
subCommands = [
GetGraphCommand,
GetConfigCommand,
GetEysiCommand,
GetSecretCommand,
GetStatusCommand,
GetTasksCommand,
Expand Down