Skip to content

Generate list of destinations #105

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

Merged
merged 3 commits into from
May 24, 2023
Merged

Generate list of destinations #105

merged 3 commits into from
May 24, 2023

Conversation

umputun
Copy link
Owner

@umputun umputun commented May 24, 2023

see #104

This PR allows exporting the list of destinations to either json (default format) or any custom format defined by a user-provided template file (go templates format). The generated list can be sent to stdout (by default) or a custom file.

@knutov - I have added this thing even with the templates because I don't want to abuse users by forcing them to use jq ;)

I still think this feature is a little bit exotic, but probably for users migrating from ansible it will make more sense.

@umputun umputun merged commit 2aafb71 into master May 24, 2023
@umputun umputun deleted the gen_template branch May 24, 2023 21:00
@coveralls
Copy link

coveralls commented Oct 1, 2024

Pull Request Test Coverage Report for Build 5073341063

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 43 of 59 (72.88%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.3%) to 84.586%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/spot/main.go 24 32 75.0%
pkg/runner/runner.go 19 27 70.37%
Totals Coverage Status
Change from base Build 5048375418: -0.3%
Covered Lines: 2217
Relevant Lines: 2621

💛 - Coveralls

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.

2 participants