Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions common/project/projectconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const (
Cargo
Apt
Apk
Choco
)

type ConfigType string
Expand Down Expand Up @@ -89,6 +90,7 @@ var ProjectTypes = []string{
"cargo",
"apt",
"apk",
"choco",
}

func (projectType ProjectType) String() string {
Expand Down
5 changes: 5 additions & 0 deletions common/project/projectconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ func TestCargoStringRoundTrip(t *testing.T) {
assert.Equal(t, "cargo", Cargo.String())
assert.Equal(t, Cargo, FromString(Cargo.String()))
}

func TestChocoStringRoundTrip(t *testing.T) {
assert.Equal(t, "choco", Choco.String())
assert.Equal(t, Choco, FromString(Choco.String()))
}
Loading