woodpecker-ci / woodpecker

Woodpecker is a simple yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
3.95k stars 351 forks source link

CLI doesn't show any user info when listing users #2912

Closed hrachovm closed 7 months ago

hrachovm commented 7 months ago

Component

cli

Describe the bug

My assumption is that communication with the API works fine, and the issue is only in the rendering output part. I have tired to pass --pretty and --log-level trace arguments but without any effect.

System Info

services:
  svc:
    image: woodpeckerci/woodpecker-server:v2.0.0
    environment:
    - WOODPECKER_ROOT_PATH=/woodpecker
    - WOODPECKER_ADMIN=woodpecker
    ...not relevant...
    networks:
      lan:

  cli:
    image: woodpeckerci/woodpecker-cli:v2.0.0
    env_file:
    - $DATA/cli.secrets
    environment:
    - WOODPECKER_SERVER=http://svc:8000/woodpecker/
    networks:
      lan:

Additional context

No response

Validations

qwerty287 commented 7 months ago

Can reproduce, but I wasn't able to fix it...

That's an issue with urfave/cli and the flags. It should have a format flag that holds the format string but this flag is not registered and thus the format string is always empty. Specifying the flag on the command line fails with flag provided but not defined: -format.