Documentation
¶
Index ¶
- Constants
- Variables
- func EnsureHarness(reqs []require.Requirement, flowPath ...string) (string, error)
- func EnsureHarnessContext(ctx context.Context, reqs []require.Requirement, flowPath ...string) (string, error)
- func ExecHarness(bin string, args []string) int
- func ExecHarnessContext(ctx context.Context, bin string, args []string) int
- func FlowModuleRoot() (string, error)
- func GitCommit(ctx context.Context, dir string) string
- func GitDescribe(ctx context.Context, dir string) string
- func Print(w interface{ ... })
- func ResolvedBuildInfo() (version, commit, builtAt string)
- func RunBuild(ctx context.Context, args []string, ...) int
- func SourceRequires(ctx context.Context, path string) ([]require.Requirement, error)
Constants ¶
View Source
const (
HarnessEnv = "NFLOW_HARNESS"
)
HarnessEnv marks a process as running inside an external-module harness.
Variables ¶
View Source
var ( Version = "dev" Commit = unknownValue BuiltAt = unknownValue )
Functions ¶
func EnsureHarness ¶
func EnsureHarness(reqs []require.Requirement, flowPath ...string) (string, error)
func EnsureHarnessContext ¶
func ExecHarness ¶
func ExecHarnessContext ¶
func FlowModuleRoot ¶
FlowModuleRoot locates the Nexss Flow source module using the running executable or current working directory. It is shared by the CLI and the builder so both use the same module-root detection logic.
func GitDescribe ¶
GitDescribe returns the closest tag or revision for a source directory.
func ResolvedBuildInfo ¶
func ResolvedBuildInfo() (version, commit, builtAt string)
func RunBuild ¶
func RunBuild(ctx context.Context, args []string, sourceRequires func(context.Context, string) ([]require.Requirement, error)) int
RunBuild builds the workflow binary using the supplied requirement resolver. The resolver is injected by the CLI so its active native bundle set is honored.
func SourceRequires ¶
SourceRequires resolves @require declarations using the shipped native directives.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.