importcmd

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package importcmd implements the `aiwf import` verb (per-verb subpackage of M-0116; directory and package are `importcmd` because `import` is a Go reserved word).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd builds `aiwf import <manifest>`. Reads the manifest, runs the import verb against the tree, and either renders findings (no writes) or applies each plan (one commit per plan).

Flags:

--root           consumer repo root
--actor          override the manifest's `actor` (and aiwf.yaml)
--on-collision   fail (default) | skip | update
--dry-run        validate the projection and print what would happen, no writes

func Run

func Run(manifestPath, root, actor, principal, onCollision string, dryRun bool) int

Run executes `aiwf import`. Returns one of the cliutil.Exit* codes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL