Rename rondo newlib cmd to rondo add

This commit is contained in:
Jerko Steiner 2019-08-25 11:28:25 +07:00
parent ea5872d7c0
commit 6497bd42ca
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import * as path from 'path'
import {argparse, arg} from '@rondo/argparse' import {argparse, arg} from '@rondo/argparse'
import {run} from '../run' import {run} from '../run'
export async function newlib(...argv: string[]) { export async function add(...argv: string[]) {
const {parse} = argparse({ const {parse} = argparse({
name: arg('string', {positional: true, required: true}), name: arg('string', {positional: true, required: true}),
namespace: arg('string', {default: '@rondo'}), namespace: arg('string', {default: '@rondo'}),
@ -13,7 +13,7 @@ export async function newlib(...argv: string[]) {
description: 'Print help message', description: 'Print help message',
}), }),
// frontend: arg('boolean', {alias: 'f'}), // frontend: arg('boolean', {alias: 'f'}),
}) }, 'Create a new library from template')
const args = parse(argv) const args = parse(argv)
const destDir = path.join('./packages', args.name) const destDir = path.join('./packages', args.name)

View File

@ -1,3 +1,3 @@
export * from './add'
export * from './build' export * from './build'
export * from './newlib'
export * from './intergen' export * from './intergen'