add git module and kvStore
This commit is contained in:
24
ts/mod_git/index.ts
Normal file
24
ts/mod_git/index.ts
Normal 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 () => {
|
||||
|
||||
}
|
1
ts/mod_git/mod.plugins.ts
Normal file
1
ts/mod_git/mod.plugins.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from '../npmci.plugins'
|
Reference in New Issue
Block a user