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

Replace pflag with cobra, add service command #17

Merged
merged 5 commits into from
May 18, 2024
Merged

Conversation

uubulb
Copy link
Contributor

@uubulb uubulb commented May 16, 2024

把原先使用的spf13/pflag换成了spf13/cobra,以支持额外命令
将原先更改设置用的-c选项移动到了edit命令下,通过agent edit调用
增加了通过agent管理自启动服务的命令service,其中安装命令格式为agent service install -s host:port -p password --tls
这个pr如果能通过,我会再改一下安装脚本
另外如果通过了之后希望nezhahq能fork一个https://github.com/kardianos/service,这个仓库现在无人维护,fork了之后方便改一些功能(比如加上openrc的workingdirectory选项)

@naiba
Copy link
Member

naiba commented May 18, 2024

fix 一下 ci

https://github.com/nezhahq/service

@uubulb
Copy link
Contributor Author

uubulb commented May 18, 2024

fix 一下 ci

https://github.com/nezhahq/service

先处理一下这个
nezhahq/service#1

@uubulb
Copy link
Contributor Author

uubulb commented May 18, 2024

原来的卸载逻辑也有点问题,可以再看一下吗
nezhahq/service#2

@naiba
Copy link
Member

naiba commented May 18, 2024

原来的卸载逻辑也有点问题,可以再看一下吗 nezhahq/service#2

merged

@uubulb
Copy link
Contributor Author

uubulb commented May 18, 2024

等一下再处理,我把输出init的那句忘掉了(

gosec 2.19.0 is the last version supports Go 1.20
@uubulb
Copy link
Contributor Author

uubulb commented May 18, 2024

等一下再处理,我把输出init的那句忘掉了(

好了

@naiba naiba merged commit 060d13a into nezhahq:main May 18, 2024
4 checks passed
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