Skip to content

Commit

Permalink
删除无用内容,添加超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliang-ms committed Aug 1, 2023
1 parent e4b5bea commit d0c16e0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 40 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
![GitHub Workflow Status (event)](https://img.shields.io/github/workflow/status/weiliang-ms/easyctl/Go?style=flat-square)
[![Go Report Card](https://goreportcard.com/badge/github.com/weiliang-ms/easyctl)](https://goreportcard.com/report/github.com/weiliang-ms/easyctl)
![GitHub go.mod Go version (subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/weiliang-ms/easyctl?filename=go.mod&style=flat-square)
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/weiliang-ms/easyctl?style=flat-square)
Expand Down Expand Up @@ -69,20 +68,6 @@ sudo cp easyctl /usr/local/bin
## 迭代计划

> 里程碑
- [x] [文档站点](https://weiliang-ms.github.io/easyctl/)
- [x] 集成`github workflow`
- [x] [集成codecov](https://app.codecov.io/gh/weiliang-ms/+)
- `v0.x.y-alpha`: 开发
- `v1.0.0-beta`: `bug`修复
- `v1.0.0-release`: 正式版本

> TODO
- 单元测试覆盖率90%以上
- 提升单元测试执行效率

> `v1`功能列表
- `add`
Expand Down
2 changes: 1 addition & 1 deletion cmd/harden/harden.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var config []byte
var RootCmd = &cobra.Command{
Use: "harden [OPTIONS] [flags]",
Short: "安全加固指令",
Args: cobra.ExactValidArgs(1),
Args: cobra.MatchAll(cobra.ExactArgs(1)),
}

func init() {
Expand Down
24 changes: 0 additions & 24 deletions cmd/set/hostname.go

This file was deleted.

2 changes: 2 additions & 0 deletions pkg/harden/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"gopkg.in/yaml.v2"
"os"
"strings"
"time"
)

// Object 加固对象
Expand Down Expand Up @@ -570,6 +571,7 @@ func (object *Object) run(cmd string) command.RunErr {
ManifestContent: object.B,
Logger: object.Logger,
Cmd: cmd,
SSHTimeout: time.Second * 3,
RecordErrServerList: false,
})
}

0 comments on commit d0c16e0

Please sign in to comment.