Skip to content

Commit

Permalink
cleanup: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jan 11, 2024
1 parent 4fbd142 commit 02d3670
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 8 deletions.
5 changes: 3 additions & 2 deletions core/apt.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"bufio"
"errors"
"fmt"
"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"
"os"
"path/filepath"

"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"
)

type AptModule struct {
Expand Down
1 change: 1 addition & 0 deletions core/cmake.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package core

import (
"fmt"

"github.com/mitchellh/mapstructure"

"github.com/vanilla-os/vib/api"
Expand Down
3 changes: 2 additions & 1 deletion core/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package core

import (
"fmt"
"github.com/vanilla-os/vib/api"
"os"
"os/exec"

"github.com/vanilla-os/vib/api"
)

// CompileRecipe compiles a recipe into a runnable image.
Expand Down
1 change: 1 addition & 0 deletions core/dpkg-buildpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package core

import (
"fmt"

"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"
)
Expand Down
1 change: 1 addition & 0 deletions core/dpkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package core

import (
"fmt"

"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"
)
Expand Down
1 change: 1 addition & 0 deletions core/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package core

import (
"fmt"

"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"
)
Expand Down
5 changes: 3 additions & 2 deletions core/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package core

import (
"errors"
"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"
"io"
"os"
"path/filepath"

"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"

"gopkg.in/yaml.v3"
)

Expand Down
1 change: 1 addition & 0 deletions core/meson.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package core

import (
"fmt"

"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"

Expand Down
3 changes: 2 additions & 1 deletion core/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package core

import (
"fmt"
"github.com/vanilla-os/vib/api"
"plugin"

"github.com/vanilla-os/vib/api"
)

var openedPlugins map[string]Plugin
Expand Down
3 changes: 2 additions & 1 deletion core/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package core

import (
"errors"
"strings"

"github.com/mitchellh/mapstructure"
"github.com/vanilla-os/vib/api"
"strings"
)

type ShellModule struct {
Expand Down
3 changes: 2 additions & 1 deletion core/structs.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package core

import (
"github.com/vanilla-os/vib/api"
"plugin"

"github.com/vanilla-os/vib/api"
)

type Module struct {
Expand Down

0 comments on commit 02d3670

Please sign in to comment.