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

refactor read options #12

Merged
merged 1 commit into from
Jul 12, 2024
Merged

refactor read options #12

merged 1 commit into from
Jul 12, 2024

Conversation

miller-time
Copy link
Owner

No description provided.

@miller-time
Copy link
Owner Author

examples:

  • hq read -f
➜ hq read -f example.hcl '.some_block'
some_block "some_block_label" {
  attr = "value"
}
some_block "another_block_label" {
  attr = "another_value"
}
  • ...which is identical to hq -f
➜ hq -f example.hcl '.some_block'
some_block "some_block_label" {
  attr = "value"
}
some_block "another_block_label" {
  attr = "another_value"
}
  • hq read
➜ cat example.hcl | hq read '.some_block'
some_block "some_block_label" {
  attr = "value"
}
some_block "another_block_label" {
  attr = "another_value"
}
  • ...which is identical to hq
➜ cat example.hcl | hq '.some_block'
some_block "some_block_label" {
  attr = "value"
}
some_block "another_block_label" {
  attr = "another_value"
}

@miller-time miller-time merged commit 444e194 into master Jul 12, 2024
1 check passed
@miller-time miller-time deleted the refactor branch July 12, 2024 20:52
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