Skip to content

feat(runner): hooks (before/after) #25

Description

@CalvinAllen

Description

Run commands before and/or after tasks.

Proposed Syntax

build:
  before: echo "Starting build..."
  cmd: cargo build
  after: echo "Build complete"

# Or with multiple commands
deploy:
  before:
    - echo "Checking prerequisites"
    - ./check-auth.sh
  cmd: ./deploy.sh
  after:
    - echo "Deployed successfully"
    - ./notify-slack.sh

Acceptance Criteria

  • Run before commands/tasks before main command
  • Run after commands/tasks after main command (only on success)
  • Support single command or array of commands
  • Consider afterAlways for cleanup that runs even on failure

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

coreCore functionalityfutureFuture feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions