Skip to content

Level51/cliu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors