Skip to content
Level51Public

About

Command-Line Interface Utils

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

cliu

Command-Line Interface Utils for TypeScript projects.

This package ships TypeScript source files directly (no JavaScript build output).

Installation

npm install level51/cliu

Usage

import { boot, requireInput, requireOption } from '@level51/cliu';

const environment = await requireOption('env', ['dev', 'staging', 'prod'] as const);
const projectId = await requireInput('projectId');

await boot({
  appName: `Deploy ${environment}`,
  basePath: './tasks',
});

boot loads task modules from basePath and optionally accepts --task <path> to run a task directly.

About

Command-Line Interface Utils

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages