Skip to main content

MINIMAL_EXEC

Constant MINIMAL_EXEC 

Source
pub const MINIMAL_EXEC: &str = r##"# ═══════════════════════════════════════════════════════════════════
# exec: — Run shell commands
# ═══════════════════════════════════════════════════════════════════
#
# The simplest Nika verb. No API key, no provider — just your shell.
#
# Run:  nika run workflows/01-exec.nika.yaml

schema: "nika/workflow@0.12"
workflow: exec-basics
description: "Shell commands with exec:"

tasks:
  - id: hello
    exec:
      command: echo "Hello from Nika!"

  - id: system_info
    exec:
      command: uname -a
      timeout: 10

  - id: count_files
    depends_on: [hello]
    exec:
      command: ls -1 | wc -l
      shell: true
"##;
Expand description

Exec verb — shell commands, env vars, piping