Internal

internal/adapters/cli/initcmd

Package initcmd installs the CLI-facing workspace bootstrap assets.

import "github.com/nilstate/scafld/v2/internal/adapters/cli/initcmd"

Package initcmd installs the CLI-facing workspace bootstrap assets.

Functions

func Message(result workspace.InitResult, installCI bool) string

Source: internal/adapters/cli/initcmd/init.go:48

Message renders the human-facing init summary, naming whether the opt-in CI merge gate was installed so a default (local-only) init advertises the upgrade.

func Run(ctx context.Context, root string, agentDocs bool, installCI bool) (workspace.InitResult, error)

Source: internal/adapters/cli/initcmd/init.go:16

Run initializes a workspace and installs bundled project assets. The CI merge-gate workflow is installed only when installCI is set (scafld init --ci); by default init is local-only and writes no .github/workflows asset.