Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make text wrap width larger, configurable, or dynamic? #342

Closed
peterbourgon opened this issue Jul 9, 2021 · 0 comments · Fixed by #970
Closed

Make text wrap width larger, configurable, or dynamic? #342

peterbourgon opened this issue Jul 9, 2021 · 0 comments · Fixed by #970
Labels
enhancement New feature or request

Comments

@peterbourgon
Copy link
Contributor

It seems like the CLI wraps most of its output at a hard 80 columns. I don't know about you, but I haven't had an 80 column wide terminal in a long long time :) So I, and I expect most other people, experience unnecessary line breakage and text wrapping. For example, this

USAGE
  fastly compute deploy [<flags>]

Deploy a package to a Fastly Compute@Edge service

OPTIONAL FLAGS
  -s, --service-id=SERVICE-ID  Service ID (falls back to FASTLY_SERVICE_ID, then
                               fastly.toml)
      --version=VERSION        'latest', 'active', or the number of a specific
                               version
  -p, --path=PATH              Path to package
      --domain=DOMAIN          The name of the domain associated to the package
      --backend=BACKEND        A hostname, IPv4, or IPv6 address for the package
                               backend
      --backend-port=BACKEND-PORT
                               A port number for the package backend

GLOBAL FLAGS
      --help         Show context-sensitive help.
  -t, --token=TOKEN  Fastly API token (or via FASTLY_API_TOKEN)
  -v, --verbose      Verbose logging

would be a lot better if it were this

USAGE
  fastly compute deploy [<flags>]

Deploy a package to a Fastly Compute@Edge service

OPTIONAL FLAGS
  -s, --service-id=SERVICE-ID      Service ID (falls back to FASTLY_SERVICE_ID, then fastly.toml)
      --version=VERSION            'latest', 'active', or the number of a specific version
  -p, --path=PATH                  Path to package
      --domain=DOMAIN              The name of the domain associated to the package
      --backend=BACKEND            A hostname, IPv4, or IPv6 address for the package backend
      --backend-port=BACKEND-PORT  A port number for the package backend

GLOBAL FLAGS
      --help         Show context-sensitive help.
  -t, --token=TOKEN  Fastly API token (or via FASTLY_API_TOKEN)
  -v, --verbose      Verbose logging

Could we make this somehow... better? In the best case, dynamic detection of terminal column width at startup, with 80col min, and probably some reasonable max, 150-200col or something?

@peterbourgon peterbourgon added the enhancement New feature or request label Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant