From 6497bd42ca87a1a029d2e5cd08e7c885f72f5f61 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Sun, 25 Aug 2019 11:28:25 +0700 Subject: [PATCH] Rename rondo newlib cmd to rondo add --- packages/scripts/src/scripts/{newlib.ts => add.ts} | 4 ++-- packages/scripts/src/scripts/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename packages/scripts/src/scripts/{newlib.ts => add.ts} (95%) diff --git a/packages/scripts/src/scripts/newlib.ts b/packages/scripts/src/scripts/add.ts similarity index 95% rename from packages/scripts/src/scripts/newlib.ts rename to packages/scripts/src/scripts/add.ts index d3f87d3..888323d 100644 --- a/packages/scripts/src/scripts/newlib.ts +++ b/packages/scripts/src/scripts/add.ts @@ -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) diff --git a/packages/scripts/src/scripts/index.ts b/packages/scripts/src/scripts/index.ts index 7dee872..1c7cb4b 100644 --- a/packages/scripts/src/scripts/index.ts +++ b/packages/scripts/src/scripts/index.ts @@ -1,3 +1,3 @@ +export * from './add' export * from './build' -export * from './newlib' export * from './intergen'