Rename rondo newlib cmd to rondo add
This commit is contained in:
parent
ea5872d7c0
commit
6497bd42ca
@ -4,7 +4,7 @@ import * as path from 'path'
|
||||
import {argparse, arg} from '@rondo/argparse'
|
||||
import {run} from '../run'
|
||||
|
||||
export async function newlib(...argv: string[]) {
|
||||
export async function add(...argv: string[]) {
|
||||
const {parse} = argparse({
|
||||
name: arg('string', {positional: true, required: true}),
|
||||
namespace: arg('string', {default: '@rondo'}),
|
||||
@ -13,7 +13,7 @@ export async function newlib(...argv: string[]) {
|
||||
description: 'Print help message',
|
||||
}),
|
||||
// frontend: arg('boolean', {alias: 'f'}),
|
||||
})
|
||||
}, 'Create a new library from template')
|
||||
const args = parse(argv)
|
||||
|
||||
const destDir = path.join('./packages', args.name)
|
||||
@ -1,3 +1,3 @@
|
||||
export * from './add'
|
||||
export * from './build'
|
||||
export * from './newlib'
|
||||
export * from './intergen'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user