Question about GSOC pwctl CLI project #391
Replies: 8 comments 12 replies
-
Hi, thanks for your interest! Yes, for the GSoC scope these only are fine. Yes, |
Beta Was this translation helpful? Give feedback.
-
I've done some research, here are my plan In theory, all the interactions should be done via REST API
Each of these top-level commands might have additional flags or arguments. For example:
Questions:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I had a bit different approach. Therefore, for authentication purpose, I was planning to keep it something similar to github, where a user can login once
|
Beta Was this translation helpful? Give feedback.
-
@pashagolub from |
Beta Was this translation helpful? Give feedback.
-
Just recovered from COVID, I had my proof of concept implementation on https://github.com/qazxcdswe123/pwctl, which currently supports I've also refined some parameters.
|
Beta Was this translation helpful? Give feedback.
-
Hi, I've organized the pwatch3 API and uploaded it here. I also created a simple demo to help me understand the idea of pwctl. The pwatch3 API is very simple and easy to use. Interacting with the pwatch3 API is not difficult, but the challenging part is designing the commands and flags to make it user-friendly. Some APIs use CLI for control, which can be complex(such as the add operation). I think they need to be simplified (perhaps by adding more flags) to make them easier to use instead of using JSON strings to interact with pwctl. Additionally, the output of pwctl is important. I believe it needs to consider both the output format and content. The storage of the token is also need to be considered. I don't know if it is a good idea to store the token in a file. I would appreciate any suggestions or comments from developers. Your insights would be valuable for further discussions. |
Beta Was this translation helpful? Give feedback.
-
Hi @pashagolub , https://github.com/cybertec-postgresql/pgwatch3/blob/master/src/sinks/json_file.go do we have to mimic the behavior of this API for the sink task for the csv file? Also, if yes then what data are we required to store? Is it the same |
Beta Was this translation helpful? Give feedback.
-
Just as a remark, the CLI should be kind of read only in case you don't use webUI and configuration DB to manage pgwatch, but use config file based setup. As reconfiguring anyways is done via configuration file, then the pwctl could only be used for debugging purpose. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm interested in the GSOC pwctl CLI project, and I have some questions here
Thanks
Beta Was this translation helpful? Give feedback.
All reactions