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

Visibility PR: Retain formatting CLI example Edge-Case. #3

Open
wants to merge 7 commits into
base: no-format-retained-faster-implementation
Choose a base branch
from

Conversation

MichaelDimmitt
Copy link
Member

@MichaelDimmitt MichaelDimmitt commented May 16, 2019

Example: (The updated code outputs this format correctly.)

REST Easy is a command line utility, which takes a JSON formatted configuration
file and performs REST GET requests against the defined target endpoints. 

Using this app, with JSON formatted config file, one can run n number of GET requests to the
defined target endpoints and display the response to the terminal (default).

Usage:
  rest_easy [command]

Available Commands:
  adhoc       Use the 'adhoc' sub-command to run GET requests against single 
endpoint
  help        Help about any command
  list        Use the 'list' sub-command to list the defined endpoints to be tested
  test        Use the 'test' sub-command to run GET requests to defined endpoints

Flags:
  -h, --help         help for rest_easy
      --log string   log file (default is ./rest_easy.log)

Previous implementation was removing indents
(Here is actual diff to the output effected by this commit):

- -h, --help         help for rest_easy
- adhoc       Use the 'adhoc' sub-command to run GET requests against single endpoint
- help        Help about any command
- list        Use the 'list' sub-command to list the defined endpoints to be tested
- test        Use the 'test' sub-command to run GET requests to defined endpoints
- --log string   log file (default is ./rest_easy.log)
+   -h, --help         help for rest_easy
+   adhoc       Use the 'adhoc' sub-command to run GET requests against single 
+   help        Help about any command
+   list        Use the 'list' sub-command to list the defined endpoints to be tested
+   test        Use the 'test' sub-command to run GET requests to defined endpoints
+       --log string   log file (default is ./rest_easy.log)

@MichaelDimmitt MichaelDimmitt changed the title Exposing changes that occurred to retain formatting from a cli. Visibility: Exposing changes for retain formatting from cli output. May 16, 2019
@MichaelDimmitt MichaelDimmitt changed the title Visibility: Exposing changes for retain formatting from cli output. Visibility PR: Retain formatting from cli example. May 16, 2019
@MichaelDimmitt MichaelDimmitt changed the title Visibility PR: Retain formatting from cli example. Visibility PR: Retain formatting cli example edgecase. May 16, 2019
@MichaelDimmitt MichaelDimmitt changed the title Visibility PR: Retain formatting cli example edgecase. Visibility PR: Retain formatting CLI example Edge-Case. May 16, 2019
@MichaelDimmitt
Copy link
Member Author

Do you use this ? Do you want me to do something ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant