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

fix: refactor to support varying print output #350

Conversation

jrschumacher
Copy link
Member

  • reduce burden of multiple cli objects
  • c.Flags rather than FlagHelper
  • add various print options (c.Print, c.Printf, c.Println)
  • add debug print options (c.Debug, c.Debugf, c.Debugln)
  • add --json support
  • add --debug support

- reduce burden of multiple cli objects
- c.Flags rather than FlagHelper
- add various print options (c.Print, c.Printf, c.Println)
- add debug print options (c.Debug, c.Debugf, c.Debugln)
- add `--json` support
- add `--debug` support
adr/0001-printing-with-json.md Outdated Show resolved Hide resolved
cmd/dev.go Outdated Show resolved Hide resolved
cmd/policy-attributeValues.go Show resolved Hide resolved
jakedoublev
jakedoublev previously approved these changes Aug 29, 2024
Copy link
Contributor

@jakedoublev jakedoublev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some CI checks failing still but otherwise looks great. Nice work.

@jrschumacher jrschumacher changed the title chore(cli): refactor to support varying print output fix: refactor to support varying print output Aug 29, 2024
…ommands-expected-to-output-json-should-not-print-using-profile-profile-name
@jrschumacher jrschumacher merged commit d6932f3 into main Aug 30, 2024
7 checks passed
@jrschumacher jrschumacher deleted the 341-bug-when-commands-expected-to-output-json-should-not-print-using-profile-profile-name branch August 30, 2024 14:51
jakedoublev pushed a commit that referenced this pull request Sep 12, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.13.0](v0.12.2...v0.13.0)
(2024-09-12)


### Features

* add cli test mode and profile tests
([#313](#313))
([e0bc183](e0bc183))
* **ci:** make e2e test workflow reusable
([#365](#365))
([d94408c](d94408c))
* **ci:** namespaces e2e tests and test suite improvements
([#351](#351))
([ce28555](ce28555))
* **ci:** reusable platform composite action in e2e tests
([#369](#369))
([f7d5a1c](f7d5a1c))
* **core:** add ecdsa-binding encrypt flag
([#360](#360))
([8702ec0](8702ec0))
* **core:** adds missing long manual output docs
([#362](#362))
([8e1390f](8e1390f)),
closes [#359](#359)
* **core:** kas-grants list
([#346](#346))
([7f51282](7f51282)),
closes [#253](#253)


### Bug Fixes

* **ci:** e2e workflow should be fully reusable
([#368](#368))
([cc1e2b9](cc1e2b9))
* **ci:** enhance lint config and resolve all lint issues
([#363](#363))
([5c1dbf1](5c1dbf1))
* **core:** GOOS, error message fixes
([#378](#378))
([623a82a](623a82a)),
closes [#380](#380)
* **core:** metadata rendering cleanup
([#293](#293))
([ed21f81](ed21f81))
* **core:** wire attribute value FQNs to encrypt
([#370](#370))
([21f9b80](21f9b80))
* refactor to support varying print output
([#350](#350))
([d6932f3](d6932f3))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com>
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.

Bug: when commands expected to output JSON, should not print 'using profile [profile name]'
2 participants