-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…21) * added --list for apex run, unified ui tables, updated readme, replaced justfile with apex.yaml, centralized some dependencies, updated cliffy * updated descriptions * Adding version column to template list * updated git url Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
- Loading branch information
Showing
22 changed files
with
234 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
# deno install mocker | ||
exec deno run --allow-all --unstable './apex.ts' "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
tasks: | ||
test: | ||
description: Run tests | ||
cmds: | ||
- deno fmt --check src/ test/ | ||
- deno test --unstable -A | ||
install: | ||
description: Install apex | ||
cmds: | ||
- deno install -f -A --unstable ./apex.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
import { Command } from "https://deno.land/x/cliffy@v0.25.5/command/mod.ts"; | ||
import { Row, Table } from "https://deno.land/x/cliffy@v0.25.5/table/mod.ts"; | ||
import { Command } from "../deps/cliffy.ts"; | ||
import { action as runAction } from "./run.ts"; | ||
|
||
import { templateList } from "../utils.ts"; | ||
import * as ui from "../ui.ts"; | ||
|
||
export const templates = new Command() | ||
.description("List installed templates.") | ||
.action(async (_options) => { | ||
const templates = await templateList(); | ||
new Table() | ||
.header(Row.from(["Name", "Description"]).border(true)) | ||
.body(templates.map((t) => [t.name, t.description])) | ||
.render(); | ||
ui.objToTable(templates, ["version", "description"]); | ||
}); | ||
|
||
export const tasks = new Command() | ||
.description("List tasks.") | ||
.option( | ||
"-c, --config <string>", | ||
"specify an Apex configuration", | ||
{ default: "apex.yaml" }, | ||
) | ||
.action(async (options) => { | ||
await runAction({ list: true, config: options.config }, ""); | ||
}); | ||
|
||
export const command = new Command() | ||
.description("List available resources.") | ||
.default("help") | ||
.command("templates", templates); | ||
.command("templates", templates) | ||
.command("tasks", tasks); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.