Skip to content

Add a --health-check flag to the daemon that prints 'ok' and exits #258

Description

@rotemmiz

Request

Add a CLI flag to the opcode42 daemon. When run with this flag, it should:

  1. Check if the daemon is running (or just print 'ok')
  2. Exit with code 0 if healthy, 1 if not

This is a trivial change for testing the agentic pipeline. Just add the flag to the root command and print 'ok' + exit 0.

Context

  • Main entry point: cmd/opcode42/main.go
  • CLI framework: cobra (check go.mod for the dependency)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions