UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

15 lines (13 loc) 471 B
import type Vorpal from "vorpal"; import { getProjectNamespace } from "../../../../utils/projects"; import { envAndComponents } from "./utils/autocompletions"; export default async (vorpal: Vorpal) => vorpal .command( "project-namespace <envComponent>", "show namespace of local project", ) .autocomplete(await envAndComponents()) .action(async function ({ envComponent }) { this.log(await getProjectNamespace(envComponent)); });