1import { buildEpScopesSection } from '../cliF/buildEpScopesSectionAI.mts';2import { buildScopeCmdHelp } from '../cliF/buildScopeCmdHelpAI.mts';3import { getProcArgv } from '../../serverF/isDirectlyRunF.mts'4import { absPathToPtPath } from '../../serverF/pathF/absPathToPtPathF.mts';5import { k8sCliBase } from './cliF/k8sCliBaseF.mts'7type K8sCliProps = { actionNames: string[], actionsH?: Record<string, unknown> }9export const k8sCli = ({actionNames, actionsH={}}: K8sCliProps) => {10 const scriptPath = absPathToPtPath(getProcArgv()[1] as any)11 const scopesInfo = (buildEpScopesSection as any)({actionNames, actionsH, callingScript: scriptPath})12 return k8sCliBase({actionNames, actionsH, scopesInfo, buildScopeCmdHelpFnc: buildScopeCmdHelp})13}