From c6df733e5ea6e5ee0fee837955e9691e301eaa5a Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:53:27 +0000 Subject: [PATCH] v0.0.2 --- .github/workflows/ci.yaml | 2 +- cmd/main.go | 10 +++++----- {disktest => disk}/disktest.go | 2 +- {disktest => disk}/utils.go | 2 +- disk/version.go | 3 +++ disktest/version.go | 3 --- 6 files changed, 11 insertions(+), 11 deletions(-) rename {disktest => disk}/disktest.go (99%) rename {disktest => disk}/utils.go (99%) create mode 100644 disk/version.go delete mode 100644 disktest/version.go diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0c53bbb..47bb19a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: run: | git config --global user.name 'github-actions' git config --global user.email 'github-actions@github.com' - TAG="v0.0.1-$(date +'%Y%m%d%H%M%S')" + TAG="v0.0.2-$(date +'%Y%m%d%H%M%S')" git tag $TAG git push origin $TAG env: diff --git a/cmd/main.go b/cmd/main.go index ba2fd18..116b744 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -7,7 +7,7 @@ import ( "runtime" "strings" - "github.com/oneclickvirt/disktest/disktest" + "github.com/oneclickvirt/disktest/disk" ) func main() { @@ -25,7 +25,7 @@ func main() { testPathPtr := flag.String("p", "", "Specific Test Disk Path (default is /root or C:)") flag.Parse() if showVersion { - fmt.Println(disktest.DiskTestVersion) + fmt.Println(disk.DiskTestVersion) return } var language, res, testMethod, testPath string @@ -51,12 +51,12 @@ func main() { testPath = strings.TrimSpace(strings.ToLower(*testPathPtr)) } if runtime.GOOS == "windows" { - res = disktest.WinsatTest(language, isMultiCheck, testPath) + res = disk.WinsatTest(language, isMultiCheck, testPath) } else { if testMethod == "fio" { - res = disktest.FioTest(language, isMultiCheck, testPath) + res = disk.FioTest(language, isMultiCheck, testPath) } else if testMethod == "dd" { - res = disktest.DDTest(language, isMultiCheck, testPath) + res = disk.DDTest(language, isMultiCheck, testPath) } } fmt.Printf(res) diff --git a/disktest/disktest.go b/disk/disktest.go similarity index 99% rename from disktest/disktest.go rename to disk/disktest.go index 7faf850..be69494 100644 --- a/disktest/disktest.go +++ b/disk/disktest.go @@ -1,4 +1,4 @@ -package disktest +package disk import ( "fmt" diff --git a/disktest/utils.go b/disk/utils.go similarity index 99% rename from disktest/utils.go rename to disk/utils.go index 2cbe35c..2f60b4b 100644 --- a/disktest/utils.go +++ b/disk/utils.go @@ -1,4 +1,4 @@ -package disktest +package disk import ( "fmt" diff --git a/disk/version.go b/disk/version.go new file mode 100644 index 0000000..3ec9f0f --- /dev/null +++ b/disk/version.go @@ -0,0 +1,3 @@ +package disk + +const DiskTestVersion = "v0.0.2" diff --git a/disktest/version.go b/disktest/version.go deleted file mode 100644 index f1edf68..0000000 --- a/disktest/version.go +++ /dev/null @@ -1,3 +0,0 @@ -package disktest - -const DiskTestVersion = "v0.0.1"