Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mhewedy/vermin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.74.0
Choose a base ref
...
head repository: mhewedy/vermin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on May 15, 2020

  1. update usage

    mhewedy committed May 15, 2020
    Copy the full SHA
    25e331a View commit details

Commits on May 17, 2020

  1. Copy the full SHA
    99392d7 View commit details

Commits on May 18, 2020

  1. Update README.md

    mhewedy authored May 18, 2020
    Copy the full SHA
    715510f View commit details

Commits on May 20, 2020

  1. update todo

    mhewedy committed May 20, 2020
    Copy the full SHA
    a9940b2 View commit details
  2. Copy the full SHA
    02c4e36 View commit details
  3. Copy the full SHA
    1b85a4d View commit details
  4. Copy the full SHA
    ddef8c1 View commit details
  5. update README.md

    mhewedy committed May 20, 2020
    Copy the full SHA
    6794978 View commit details
  6. Update README.md

    mhewedy authored May 20, 2020
    Copy the full SHA
    ed5f0f5 View commit details

Commits on May 24, 2020

  1. update getVMInfoList

    mhewedy committed May 24, 2020
    Copy the full SHA
    6bf3ba2 View commit details

Commits on May 25, 2020

  1. fix sample focal setup script

    mhewedy committed May 25, 2020
    Copy the full SHA
    60e4020 View commit details
  2. fix k8s setup script

    mhewedy committed May 25, 2020
    Copy the full SHA
    b458c95 View commit details
  3. fix k8s setup script

    mhewedy committed May 25, 2020
    Copy the full SHA
    2b96fc9 View commit details
  4. fix k8s setup script

    mhewedy committed May 25, 2020
    Copy the full SHA
    5bd20fe View commit details
  5. polish

    mhewedy committed May 25, 2020
    Copy the full SHA
    636dce0 View commit details
  6. Copy the full SHA
    300d907 View commit details
  7. work on k8s worker.sh

    mhewedy committed May 25, 2020
    Copy the full SHA
    81b71db View commit details

Commits on May 27, 2020

  1. Update README.md

    mhewedy authored May 27, 2020
    Copy the full SHA
    b995323 View commit details
  2. Copy the full SHA
    d6de986 View commit details
  3. Copy the full SHA
    e6c7028 View commit details
  4. add todo

    mhewedy committed May 27, 2020
    Copy the full SHA
    f10b0a7 View commit details
  5. clean todos

    mhewedy committed May 27, 2020
    Copy the full SHA
    7d2bfe7 View commit details
  6. Copy the full SHA
    d0bf3f8 View commit details
  7. Copy the full SHA
    c734295 View commit details
  8. todo

    mhewedy committed May 27, 2020
    Copy the full SHA
    f51d537 View commit details

Commits on May 28, 2020

  1. Update README.md

    mhewedy authored May 28, 2020
    Copy the full SHA
    5728c4b View commit details
  2. update todo

    mhewedy committed May 28, 2020
    Copy the full SHA
    2dac492 View commit details
  3. Copy the full SHA
    7206689 View commit details

Commits on May 30, 2020

  1. Change vm db structure

    Allow remove tags from VM
    mhewedy committed May 30, 2020
    Copy the full SHA
    15722d3 View commit details
  2. update README.md

    mhewedy committed May 30, 2020
    Copy the full SHA
    a29fbd5 View commit details
  3. polish code

    mhewedy committed May 30, 2020
    Copy the full SHA
    486e865 View commit details
  4. Update README.md

    mhewedy authored May 30, 2020
    Copy the full SHA
    4f0bca7 View commit details
  5. Update README.md

    mhewedy authored May 30, 2020
    Copy the full SHA
    df76d5c View commit details
  6. Update README.md

    mhewedy authored May 30, 2020
    Copy the full SHA
    1680bc6 View commit details
  7. Copy the full SHA
    6e164db View commit details
  8. Copy the full SHA
    39b4e19 View commit details

Commits on Jun 4, 2020

  1. polish code

    mhewedy committed Jun 4, 2020
    Copy the full SHA
    328d85b View commit details
  2. add gif

    mhewedy committed Jun 4, 2020
    Copy the full SHA
    4b12b34 View commit details
  3. Update README.md

    mhewedy authored Jun 4, 2020
    Copy the full SHA
    e685af9 View commit details
  4. Update README.md

    mhewedy authored Jun 4, 2020
    Copy the full SHA
    4a814a9 View commit details

Commits on Jun 5, 2020

  1. add gui feature

    mhewedy committed Jun 5, 2020
    Copy the full SHA
    7bea68e View commit details

Commits on Jun 8, 2020

  1. Copy the full SHA
    aea5554 View commit details

Commits on Jun 12, 2020

  1. Copy the full SHA
    63421b0 View commit details

Commits on Jun 13, 2020

  1. Copy the full SHA
    a5e07c3 View commit details
  2. update README.md

    mhewedy committed Jun 13, 2020
    Copy the full SHA
    c1d1594 View commit details
  3. Copy the full SHA
    77cf4e2 View commit details

Commits on Jun 18, 2020

  1. Copy the full SHA
    18a1db3 View commit details
  2. Update README.md

    mhewedy authored Jun 18, 2020
    Copy the full SHA
    cdf8529 View commit details

Commits on Jun 21, 2020

  1. Copy the full SHA
    b86ae28 View commit details
  2. Update README.md

    mhewedy authored Jun 21, 2020
    Copy the full SHA
    53206f2 View commit details
Showing with 3,666 additions and 1,421 deletions.
  1. +24 −0 .github/.golangci.yml
  2. +39 −0 .github/workflows/build.yml
  3. +22 −6 .github/workflows/go.yml
  4. +4 −0 .gitignore
  5. +2 −0 Makefile
  6. +76 −136 README.md
  7. +0 −9 TODO.md
  8. +109 −0 cmd/cmd.go
  9. +67 −0 cmd/commands.go
  10. +84 −0 cmd/scp/scp.go
  11. +45 −0 cmd/scp/scp_test.go
  12. +5 −5 {command → cmd}/ssh/establish.go
  13. +44 −0 cmd/ssh/ssh.go
  14. +0 −19 cmd/util.go
  15. +0 −107 command/command.go
  16. +0 −61 command/commands.go
  17. +66 −0 command/commit.go
  18. +1 −1 {cmd → command}/completion.go
  19. +36 −26 {cmd → command}/cp.go
  20. +34 −11 {cmd → command}/create.go
  21. +2 −2 {cmd → command}/exec.go
  22. +15 −27 cmd/mount.go → command/gui.go
  23. +49 −0 command/hypervisor.go
  24. +14 −8 {cmd → command}/images.go
  25. +2 −2 {cmd → command}/ip.go
  26. +131 −0 command/mount.go
  27. +9 −7 {cmd → command}/port.go
  28. +5 −2 {cmd → command}/ps.go
  29. +2 −2 {cmd → command}/remove.go
  30. +63 −0 command/remove_image.go
  31. +2 −6 {cmd → command}/restart.go
  32. +1 −1 {cmd → command}/root.go
  33. +0 −34 command/scp/scp.go
  34. +2 −2 {cmd → command}/ssh.go
  35. +0 −44 command/ssh/ssh.go
  36. +2 −2 {cmd → command}/start.go
  37. +2 −2 {cmd → command}/stop.go
  38. +8 −6 {cmd → command}/tag.go
  39. +95 −0 command/update.go
  40. +49 −0 command/util.go
  41. +6 −6 {cmd → command}/valid_args_func.go
  42. +1 −1 {cmd → command}/version.go
  43. +44 −0 config/trace/trace.go
  44. +19 −41 db/db.go
  45. +0 −60 db/info.go
  46. +0 −30 db/util.go
  47. +115 −0 db/vmdb.go
  48. +3 −1 etc/add/README.md
  49. +28 −0 etc/add/post_add_ansiblepb.yaml
  50. +0 −51 etc/samples-provision/k8s.master.sh
  51. +0 −42 etc/samples-provision/k8s.node.sh
  52. +80 −0 etc/samples-provision/k8s/master.sh
  53. +69 −0 etc/samples-provision/k8s/worker.sh
  54. +7 −0 etc/samples-provision/redis.sh
  55. +5 −0 etc/samples-provision/sample_ansible_playbook.yaml
  56. +1 −2 etc/samples-provision/sample_init_focal.sh
  57. BIN etc/vermin2x.gif
  58. BIN etc/vermin2x.v2.gif
  59. +2 −1 go.mod
  60. +4 −12 go.sum
  61. +116 −0 hypervisor/base/types.go
  62. +45 −0 hypervisor/base/types_test.go
  63. +1 −0 hypervisor/hyperv/hyperv.go
  64. +211 −0 hypervisor/hypervisor.go
  65. +118 −0 hypervisor/virtualbox/box.go
  66. +37 −0 hypervisor/virtualbox/bridgedifs.go
  67. +93 −0 hypervisor/virtualbox/disk.go
  68. +13 −16 db/props/props.go → hypervisor/virtualbox/vboxprops.go
  69. +308 −0 hypervisor/virtualbox/virtualbox.go
  70. +18 −1 images/cached.go
  71. +50 −0 images/commit.go
  72. +0 −54 images/dbImage.go
  73. +74 −0 images/download.go
  74. +0 −4 images/images.csv
  75. +20 −149 images/images.go
  76. +0 −26 images/mount.go
  77. +0 −92 images/remote.go
  78. +22 −0 images/utils.go
  79. +89 −0 images/vagrant/archive_utils.go
  80. +165 −0 images/vagrant/image_url.go
  81. +98 −0 images/vagrant/process_image.go
  82. +51 −0 images/writer.go
  83. +49 −0 init.go
  84. +5 −4 install.ps1
  85. +2 −2 install.sh
  86. +7 −4 ip/arp.go
  87. +19 −13 ip/arp_windows.go
  88. +49 −25 ip/ip.go
  89. +35 −0 ip/ping.go
  90. +0 −63 ip/prefix.go
  91. +0 −1 local_install.sh
  92. +37 −0 log/log.go
  93. +2 −2 main.go
  94. +22 −0 provisioners/ansible.go
  95. +29 −0 provisioners/provisioners.go
  96. +33 −0 provisioners/shell.go
  97. +7 −4 vms/checker.go
  98. +53 −55 vms/create.go
  99. +85 −72 vms/list.go
  100. +50 −0 vms/list_test.go
  101. +30 −36 vms/mount.go
  102. +5 −4 vms/port.go
  103. +1 −1 vms/port_test.go
  104. +40 −0 vms/shrink_disk.go
  105. +82 −18 vms/vms.go
24 changes: 24 additions & 0 deletions .github/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
run:
concurrency: 2
timeout: 5m

linters-settings:
staticcheck:
checks: ["all", "-SA1029"]
misspell:
locale: US


linters:
disable-all: true
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- gosec
- gocritic
- misspell
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build

on:
pull_request:

jobs:
codereview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
go_version: "1.19"
golangci_lint_flags: "--config=.github/.golangci.yml"
reporter: github-pr-review

format:
needs: codereview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Format and test
run: |
go fmt ./...
go vet ./...
# go test -race ./... -v
compile:
needs: format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: |
mkdir -p mybinaries
go build -o mybinaries ./...
28 changes: 22 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Go

on: [push]
on:
push:
branches:
- master
tags:
- 'v*'
pull_request:

jobs:
build:
@@ -22,6 +28,14 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
run: go get -v -t -d ./...

@@ -31,8 +45,8 @@ jobs:
- name: Set Version
if: startsWith(github.ref, 'refs/tags/')
run: |
echo 'package cmd
const version = "${{ steps.get_version.outputs.VERSION }}"' > cmd/version.go
echo 'package command
const version = "${{ steps.get_version.outputs.VERSION }}"' > command/version.go
- name: Build
run: |
@@ -58,15 +72,17 @@ jobs:
name: my-artifacts
path: bin

# - uses: akhilmhdh/contributors-readme-action@v2.3.6
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
name: Release
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/download-artifact@v1
with:
name: my-artifacts
- uses: actions/download-artifact@v4

- run: mv my-artifacts/* .

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.idea
*.iml
.vscode/
vermin.exe
vermin
local_kube_vm_cluster/
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
install:
go build -o /tmp/vermin && mv /tmp/vermin /usr/local/bin/vermin
Loading