2024-06-21 17:48:43 +00:00
|
|
|
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(
|
2024-06-23 20:57:09 +00:00
|
|
|
`https://gitlab.com/${projectInfo.git.gituser}/${projectInfo.git.gitrepo}/settings/ci_cd`,
|
2024-06-21 17:48:43 +00:00
|
|
|
);
|
|
|
|
} else if (argvArg._[1] === 'pipelines') {
|
|
|
|
plugins.smartopen.openUrl(
|
2024-06-23 20:57:09 +00:00
|
|
|
`https://gitlab.com/${projectInfo.git.gituser}/${projectInfo.git.gitrepo}/pipelines`,
|
2024-06-21 17:48:43 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|