fix(core): update
This commit is contained in:
15
ts/mod_open/index.ts
Normal file
15
ts/mod_open/index.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import * as plugins from './mod.plugins.js';
|
||||
import * as paths from '../paths.js';
|
||||
|
||||
export let run = (argvArg) => {
|
||||
let projectInfo = new plugins.projectinfo.ProjectInfo(paths.cwd);
|
||||
if (argvArg._[1] === 'ci') {
|
||||
plugins.smartopen.openUrl(
|
||||
`https://gitlab.com/${projectInfo.git.gituser}/${projectInfo.git.gitrepo}/settings/ci_cd`
|
||||
);
|
||||
} else if (argvArg._[1] === 'pipelines') {
|
||||
plugins.smartopen.openUrl(
|
||||
`https://gitlab.com/${projectInfo.git.gituser}/${projectInfo.git.gitrepo}/pipelines`
|
||||
);
|
||||
}
|
||||
};
|
5
ts/mod_open/mod.plugins.ts
Normal file
5
ts/mod_open/mod.plugins.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export * from '../plugins.js';
|
||||
import * as smartopen from '@push.rocks/smartopen';
|
||||
import * as projectinfo from '@push.rocks/projectinfo';
|
||||
|
||||
export { projectinfo, smartopen };
|
Reference in New Issue
Block a user