Skip to content

cmd: Format by default on -w, add -format flag - #23

Merged
abhinav merged 2 commits into
mainfrom
abg/format
Nov 22, 2023
Merged

abhinav merged 2 commits into
mainfrom
abg/format

Conversation

@abhinav

@abhinav abhinav commented Nov 22, 2023

Copy link
Copy Markdown
Contributor

When used with -w, reformat Go source before writing the file.
Without -w, leave the file unformatted.

To provide full control over this behavior,
add a -format flag with three valid values:

  • always: always format the output
  • never: never format the output
  • auto: format the output only if used with -w

Resolves #22

When used with `-w`, reformat Go source before writing the file.
Without `-w`, leave the file unformatted.

To provide full control over this behavior,
add a -format flag with three valid values:

- always: always format the output
- never: never format the output
- auto: format the output only if used with -w

Resolves #22
Comment thread cmd/errtrace/main.go Outdated
@abhinav
abhinav merged commit e1c997f into main Nov 22, 2023
@abhinav
abhinav deleted the abg/format branch November 22, 2023 16:02
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.

cmd: Format source on -w

2 participants