feat: add preliminary message tinkering #79

Merged
sam merged 2 commits from feat-res-tinkering into master 2022-09-05 00:05:06 +00:00
Owner

There is probably a better way to do this, but it functions.

There is probably a better way to do this, but it functions.
sam added 1 commit 2022-09-04 23:38:13 +00:00
feat: add preliminary message tinkering
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
bf870e6289
Is this the right way to do it? Probably not.
Do I care? No.

Signed-off-by: Sam Therapy <sam@samtherapy.net>
sam requested review from grumbulon 2022-09-04 23:38:25 +00:00
grumbulon reviewed 2022-09-04 23:43:01 +00:00
cli/cli_test.go Outdated
@ -85,2 +85,4 @@
func TestInvalidFlag(t *testing.T) { //nolint: paralleltest // Race conditions
old := os.Args
old2 := os.Stdout
old3 := os.Stderr
Collaborator

Stylistic nitpick why not

	args := os.Args
	stdout := os.Stdout
	stderr := os.Stderr
Stylistic nitpick why not ```go args := os.Args stdout := os.Stdout stderr := os.Stderr ```
sam marked this conversation as resolved
grumbulon reviewed 2022-09-04 23:53:04 +00:00
query/query.go Outdated
@ -119,3 +119,3 @@
temp := opts.Display.Statistics
opts.Display.Statistics = false
str = ToString(util.Response{
str, err = ToString(util.Response{
Collaborator

Also optional style nit

	str, err = ToString(
		util.Response{
			DNS: req,
			RTT: 0,
		},
		opts,
	)
Also optional style nit ```go str, err = ToString( util.Response{ DNS: req, RTT: 0, }, opts, ) ```
sam marked this conversation as resolved
grumbulon approved these changes 2022-09-04 23:57:14 +00:00
sam added 1 commit 2022-09-05 00:01:27 +00:00
Apply suggestions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
6bb1c0a0cb
:)

Signed-off-by: Sam Therapy <sam@samtherapy.net>
sam merged commit 7edd983175 into master 2022-09-05 00:05:06 +00:00
sam deleted branch feat-res-tinkering 2022-09-05 00:05:06 +00:00
Sign in to join this conversation.
No description provided.