Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
> [!NOTE]
> This tool is only used for managing [Deno Deploy Classic](https://docs.deno.com/deploy/classic/) organizations and their projects. New Deno Deploy organizations use the `deno deploy` command built into the Deno Runtime. Learn more about the new `deno deploy` command in the [reference docs](https://docs.deno.com/runtime/reference/cli/deploy/)
> This tool is only used for managing
> [Deno Deploy Classic](https://docs.deno.com/deploy/classic/) organizations and
> their projects. New Deno Deploy organizations use the `deno deploy` command
> built into the Deno Runtime. Learn more about the new `deno deploy` command in
> the [reference docs](https://docs.deno.com/runtime/reference/cli/deploy/)

# deployctl

Expand Down
23 changes: 18 additions & 5 deletions examples/fresh/static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/config_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ConfigFile {
/** Returns all the differences between this `ConfigArgs` and the one provided as argument.
*
* The comparison is performed against the JSON output of each config. The "other" args are
* sematically considered additions in the return value. Ignores any property in `args` not meant
* semantically considered additions in the return value. Ignores any property in `args` not meant
* to be persisted.
*/
diff(args: ConfigArgs): Change[] {
Expand Down
2 changes: 1 addition & 1 deletion src/subcommands/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async function showDeployment(args: Args): Promise<void> {
}
let organization = project.organization;
if (!organization.name && !organization.members) {
// project.organization does not incude members array, and we need it for naming personal orgs
// project.organization does not include members array, and we need it for naming personal orgs
organization = await api.getOrganizationById(organization.id);
}
spinner.succeed(
Expand Down
4 changes: 2 additions & 2 deletions src/subcommands/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ OPTIONS:
--grep=<WORD> Filter logs by a word
Multiple words can be specified for AND search. For example, "--grep=foo --grep=bar" will match logs containing both "foo" and "bar"
--levels=<LEVELS> Filter logs by log levels (defaults to all log levels)
Mutliple levels can be specified, e.g. --levels=info,error
Multiple levels can be specified, e.g. --levels=info,error
--regions=<REGIONS> Filter logs by regions (defaults to all regions)
Multiple regions can be specified, e.g. --regions=region1,region2
--limit=<LIMIT> Limit the number of logs to return (defualts to 100)
--limit=<LIMIT> Limit the number of logs to return (defaults to 100)
This flag is effective only when --since and/or --until is specified
`;

Expand Down
2 changes: 1 addition & 1 deletion src/subcommands/top.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Definition of the table columns:
CPU/req CPU time per request, in milliseconds.
RSS/5min Max RSS used by the project during the last 5 minutes, in MB.
Ingress/min Data received by the project per minute, in KB.
Egress/min Data outputed by the project per minute, in KB.
Egress/min Data outputted by the project per minute, in KB.
KVr/min KV reads performed by the project per minute.
KVw/min KV writes performed by the project per minute.
QSenq/min Queues enqueues performed by the project per minute.
Expand Down
4 changes: 2 additions & 2 deletions src/utils/access_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ async function provision(): Promise<string> {
wait("").start().warn(warn);
let error = new TextDecoder().decode((await open.output()).stderr);
const errIndent = 2;
const elipsis = "...";
const ellipsis = "...";
const maxErrLength = warn.length - errIndent;
if (error.length > maxErrLength) {
error = error.slice(0, maxErrLength - elipsis.length) + elipsis;
error = error.slice(0, maxErrLength - ellipsis.length) + ellipsis;
}
// resulting indentation is 1 less than configured
wait({ text: "", indent: errIndent + 1 }).start().fail(error);
Expand Down
2 changes: 1 addition & 1 deletion tests/config_file_test/config_file_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Deno.test("ConfigFile.diff returns array with additions and removals", async ()
]);
});

Deno.test("ConfigFile.diff reports inculde and exclude changes when one of the entries changed", async () => {
Deno.test("ConfigFile.diff reports include and exclude changes when one of the entries changed", async () => {
const config = await configFile.read(
fromFileUrl(new URL(import.meta.resolve("./config.json"))),
);
Expand Down
Loading