add git module and kvStore

This commit is contained in:
2017-08-28 17:11:47 +02:00
parent 10cc7cf581
commit 5eb07f1ad7
12 changed files with 92 additions and 2 deletions

24
ts/mod_git/index.ts Normal file
View File

@ -0,0 +1,24 @@
import * as plugins from './mod.plugins'
/**
* handle cli input
* @param argvArg
*/
export let handleCli = async (argvArg) => {
if (argvArg._.length >= 2) {
let action: string = argvArg._[ 1 ]
switch (action) {
case 'mirror':
await mirror()
break
default:
plugins.beautylog.error(`>>npmci git ...<< action >>${action}<< not supported`)
}
} else {
plugins.beautylog.log(`>>npmci git ...<< cli arguments invalid... Please read the documentation.`)
}
}
export let mirror = async () => {
}

View File

@ -0,0 +1 @@
export * from '../npmci.plugins'