Files
cli/ts/mod_open/index.ts
T

16 lines
547 B
TypeScript

import * as plugins from './mod.plugins.js';
import * as paths from '../paths.js';
export let run = async (argvArg) => {
let projectInfo = await plugins.projectinfo.ProjectInfo.create(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`,
);
}
};