@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
15 lines (11 loc) • 385 B
text/typescript
import type Vorpal from "vorpal";
import { hasGitlabToken, setupGitlabToken } from "../../../utils/gitlab";
export const verify = async (vorpal: Vorpal) => {
// check if has all settings
if (!(await hasGitlabToken())) {
vorpal.command("setup-gitlab-token").action(async function () {
await setupGitlabToken(this);
});
vorpal.exec("setup-gitlab-token");
}
};