Skip to content

service logs --tail accepts negative and fractional numbers #309

Description

@wmadden-electric

flag.number checks only that the value is finite (parseNumberInput in packages/cli-engine/src/execution/stricli-adapter.ts), so prisma service logs --tail -1 and --tail 1.5 reach the API. Validate --tail as a non-negative integer in the service logs handler (packages/cli/src/commands/service/logs.ts); no engine change needed.

Recorded in the prisma-cli-v8 project ledger, which is being deleted at close-out:

- **A validated number flag**, if `--tail`'s old constraint is wanted

🤖 Generated with Claude Code

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions