v0.2.4

Documentation version

v0.2.4v0.3.2
en

Documentation language

en

Search documentation

ESC

Documentation search

What are you working on?

Find a guide, configuration option, action, or ESH topic.

Browse documentation
DocsNamespace configuration

Namespace configuration

A namespace file organizes logical workflow tasks (such as release routines, database migrations, package bundling, or maintenance checks) into a dedicated Flow document without requiring a separate physical codebase directory or submodule.

Namespace files are loaded when registered in workspace.include (or module.include). A namespace can include child namespace files to keep large task groups in a directory.

Root schema

namespace Define namespace identity, description, inherited environment variables, template values, and tasks.

An included Flow document organizing workflow tasks into a logical namespace.

Namespace files allow modularizing workspace tasks into specialized files (e.g. .evin/release.flow, .evin/packages.flow) without needing physical code modules.

Root Sections

KeyTypeRequiredPurpose
namespaceobjectyesNamespace identifier and human-readable description.
includelist or map of pathsnoChild namespace Flow files, resolved relative to this file (alias includes).
tasksmap of tasksnoTasks defined within this namespace.
envmap of stringsnoEnvironment variables inherited by all tasks in this namespace.
valuesmap of stringsnoTemplate values available to action configurations in this namespace.

Namespace metadata fields

namespace.name Prefix identifier prepended to every task declared in this namespace document.

Specifies the namespace prefix prepended to every task defined in this file.

For example, with name: release, a task declared as clean is addressable as release:clean.

namespace.description Human-readable description of the namespace shown in CLI listings and catalog overviews.

A human-readable label explaining the purpose of this namespace. Displayed in evin list and editor hover overviews.

Root sections

namespace.env Environment variables inherited by all tasks declared in this namespace.

Defines environment variables scoped to all tasks in this namespace document.

namespace.values Action template values available to all tasks in this namespace.

Defines document-level template values accessible in action with: blocks via ${value_name} syntax across all tasks in this namespace.

namespace.tasks Named tasks declared in this namespace participating in the workspace execution DAG.

Defines tasks owned by this namespace. Tasks use the standard task schema (run, steps, needs, stage, env, presets, cwd, etc.) and are qualified with <namespace-name>:<task-id>.

Schema

#!evin/v1
namespace:
  name: release
  description: "Release engineering and distribution pipelines"

env:
  RELEASE_CHANNEL: canary

values:
  archive_prefix: evin
  staging_dir: "dist/release-stage"

tasks:
  clean:
    stage: Publish
    description: "Require a clean working tree"
    steps:
      - run: cargo run --locked -p esh -- scripts/release/check/doctor.esh

  bump:
    stage: Publish
    description: "Calculate and apply the next canary version"
    needs:
      - release:clean
      - verify
    steps:
      - uses: evin/version-bumper@v1
        with:
          initial_version: "1.0.0-canary.100"
          channel: canary
FieldTypeRequiredMeaning
namespace.namestringyesNamespace prepended to every task in this file (e.g. release:clean)
namespace.descriptionstringnoHuman-readable UI and catalog summary shown in evin list
includelist or mapnoNested namespace files; children are qualified beneath this namespace
envstring mapnoEnvironment variables inherited by all tasks in this namespace
valuesstring mapnoDocument-level action-template values available to tasks in this namespace
taskstask mapnoMap of task declarations using the standard task schema

Unknown fields are rejected.

Inclusion and nested namespaces

Namespace files can be included by both the root workspace and individual modules using either list or map format:

In workspace.flow

workspace:
  name: main
  version: "1.0.0"
  include:
    - .evin/release.flow
    - .evin/maintenance.flow
    - .evin/packages.flow

Alternatively, use a map to assign or override the namespace prefix explicitly:

workspace:
  name: main
  version: "1.0.0"
  include:
    release: .evin/release.flow
    ops: .evin/maintenance.flow

In module.flow

module:
  name: api
  include:
    - .evin/routes.flow
    - .evin/db.flow

Paths in module.include resolve relative to the module directory. If the namespace name matches the module name (e.g. api), tasks are prefixed as api:<task>. If a distinct sub-namespace is used (e.g. routes), tasks are prefixed as api:routes:<task>.

The alias includes is also accepted.

A namespace can include child namespace files using the same list or map syntax. Paths resolve relative to the including namespace file. Child names are appended to the parent scope, and environment variables and template values flow down to children; a child can override an inherited key.

# .evin/release.flow
namespace:
  name: release
include:
  - release/rehearsal.flow
  - release/proposal.flow
  - release/artifacts.flow
  - release/ci.flow
  - release/pkg.flow

Files declaring namespace.name: release contribute tasks to the existing release:<task> scope; files declaring ci or pkg become release:ci:<task> and release:pkg:<task>.

Split one namespace across files

Namespace names normally identify one namespace in the workspace. There is one deliberate exception: a namespace may explicitly include another namespace file that resolves to the same full scope. Those documents are treated as fragments of the same namespace, so you can move a task group into another file without inventing an extra scope or renaming its tasks.

For example, .evin/release.flow can include release/proposal.flow, whose namespace.name is also release. A bump task in that file remains release:bump. Another included file can declare namespace.name: ci, making its require task release:ci:require. This makes it practical to organize a large release pipeline into a directory by lifecycle or responsibility while keeping existing task references stable.

The exception requires an explicit namespace include connecting the documents at the same scope. Two independently included files that happen to resolve to the same namespace still produce a duplicate-namespace diagnostic. Nesting is for organizing task documents; a module remains the construct for a project directory with its own default working directory and optional version.

For distro packages, register a normal namespace file such as .evin/packages.flow; it contains shared values and standard evin/archive@v1 tasks with inline with.package objects. It is not a separately discovered metadata file. See the Archive action reference for the package schema and per-format examples.

Page source: reference/35.namespace-configuration.4515.md