-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomponent.yaml
More file actions
36 lines (36 loc) · 1.79 KB
/
Copy pathcomponent.yaml
File metadata and controls
36 lines (36 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# yaml-language-server: $schema=https://raw.githubusercontent.com/digital-asset/dpm/refs/heads/main/schema/component.v1.schema.json
#
# DPM component manifest for canton-devkit (Milestone 1 deliverable).
#
# DevKit registers a SINGLE top-level command, `localnet`, to keep the DPM
# integration surface minimal and conflict-free with DPM builtins
# (versions/install/resolve/publish/repo/component/login/bootstrap/tags/
# update). Every DevKit subcommand (up/down/status/dar/contracts/tx/token/
# metrics/doctor/…) lives under `localnet` inside our own binary.
#
# DPM strips the registered command name from argv and passes
# `exec-args` + the user's args to the binary, so `dpm localnet up --name x`
# invokes `canton-devkit --via-dpm localnet up --name x`. The
# TestRunIsArgvOnly test (internal/cli/cli_test.go) locks this invariant.
#
# The leading `--via-dpm` marker is how the binary knows it was launched by
# DPM (argv is otherwise identical to a direct `canton-devkit localnet …`
# call). App.Run strips it before Cobra parses and uses it to switch help
# text / examples to `dpm localnet …` and to hide flags that don't apply
# under DPM (e.g. `--project`, since `dpm localnet` only runs inside a Daml
# project). See internal/cli/app.go.
#
# Published per-platform via `dpm publish component` from the release CI;
# the `path` is rewritten to `canton-devkit.exe` on Windows by
# scripts/assemble-dpm-component.sh. Install with:
#
# dpm install package # after referencing oci://…/canton-devkit:<ver>
apiVersion: digitalasset.com/v1
kind: Component
spec:
commands:
- path: canton-devkit
name: localnet
desc: Manage Canton LocalNet developer environments — lifecycle, DAR, contracts, observability, and CIP-0112 token tooling.
exec-args: ["--via-dpm", "localnet"]
aliases: []