proca
Version:
30 lines (24 loc) • 842 B
JavaScript
import { Args, Flags } from "@oclif/core";
import { error, stdout, ux } from "@oclif/core/ux";
import Command from "#src/procaCommand.mjs";
import { FragmentSummary } from "#src/queries/widget.mjs";
import { gql, query } from "#src/urql.mjs";
export default class WidgetGet extends Command {
static description = "clear the cdn cache of a widget";
static examples = [
"<%= config.bin %> <%= command.id %> --url https://cdn.proca.app/d/[campaign]/[org]/[locale]",
"<%= config.bin %> <%= command.id %> --name [campaign]/[org]/[locale]",
];
static args = this.multiid();
static flags = {
// flag with no value (-f, --force)
...this.flagify({ multiid: true }),
url: Flags.string ({
description: "url of the widget on the CDN",
}),
};
async run() {
const { args, flags } = await this.parse();
console.log(flags);
}
}