iterative/vscode-dvc

View on GitHub
extension/src/pipeline/register.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { WorkspacePipeline } from './workspace'
import { RegisteredCommands } from '../commands/external'
import { InternalCommands } from '../commands/internal'

export const registerPipelineCommands = (
  pipelines: WorkspacePipeline,
  internalCommands: InternalCommands
): void => {
  internalCommands.registerExternalCommand(
    RegisteredCommands.PIPELINE_SHOW_DAG,
    () => pipelines.showDag()
  )
}