Skip to content

CLI Extensions — Stage 5: auth command + CommandRunner infrastructure #264

@aram356

Description

@aram356

Part of the EdgeZero CLI Extensions effort — stage 5 of 8.

Scope: add the private CommandRunner infrastructure (runner.rs: CommandSpec { program, args, cwd, stdin, env }, CommandRunner trait, RealCommandRunner, MockCommandRunner for tests). Add the auth command — AuthArgs (subcommand-wrapping, no Default), AuthSub { Login, Logout, Status } each with --adapter, and run_auth. Per-adapter behaviour delegates to the native CLI: axum no-ops; cloudflare wrangler login/logout/whoami; fastly fastly profile create/delete/list; spin spin cloud login/logout/info. Wire app-demo-cli auth.

Ship gate: mock-runner verification across the full (adapter, sub) matrix, including tool-not-found and non-zero-exit cases.

Design spec: §11, §6.1 — Implementation plan: Stage 5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions