Initialize narratio Go module and CLI scaffold
This commit is contained in:
21
internal/stage/stage.go
Normal file
21
internal/stage/stage.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package stage
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/app"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/artifacts"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/manifest"
|
||||
)
|
||||
|
||||
// Stage is the pipeline unit contract.
|
||||
type Stage interface {
|
||||
Name() string
|
||||
Run(ctx context.Context, env *app.Env, m *manifest.Manifest) (*Result, error)
|
||||
}
|
||||
|
||||
// Result is the declared output of a stage execution.
|
||||
type Result struct {
|
||||
Outputs []artifacts.Ref
|
||||
Metadata map[string]any
|
||||
}
|
||||
Reference in New Issue
Block a user