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

add init subcommand instead of --init command line option #514

Closed
pashagolub opened this issue Aug 22, 2024 · 0 comments
Closed

add init subcommand instead of --init command line option #514

pashagolub opened this issue Aug 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@pashagolub
Copy link
Collaborator

Examples:

./pgwatch --sources=postgresql://foo@bar/baz init

./pgwatch --metrics=custom-metrics.yaml init

./pgwatch --sources=custom-sources.yaml --metrics=custom-metrics.yaml init
@pashagolub pashagolub self-assigned this Aug 22, 2024
@pashagolub pashagolub added the enhancement New feature or request label Aug 22, 2024
pashagolub added a commit that referenced this issue Aug 22, 2024
[*] reorganize config sources for better modularity
[*] rename `config` package to `cmdopts`
[+] introduced new `config` commands for initializing and upgrading
[*] rename packages config types to `CmdOpts`
[+] add `NewPostgresMetricReaderWriterConn()`
[+] add `NewPostgresSourceReaderWriterConn()`
pashagolub added a commit that referenced this issue Aug 23, 2024
[*] reorganize config sources for better modularity
[*] rename `config` package to `cmdopts`
[+] introduced new `config` commands for initializing and upgrading
[*] rename packages config types to `CmdOpts`
[+] add `NewPostgresMetricReaderWriterConn()`
[+] add `NewPostgresSourceReaderWriterConn()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant