Skip to content

Commit

Permalink
Add go.mod.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxerwang committed May 18, 2024
1 parent 7accb37 commit fb4a951
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/linuxerwang/debmaker

go 1.19

require (
github.com/linuxerwang/ar v0.1.0 // indirect
github.com/linuxerwang/confish v0.1.0 // indirect
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/linuxerwang/ar v0.1.0 h1:TPRwDTxSes1gWgSCMNLE4kIizdQfiANGBFqRYEtSUgk=
github.com/linuxerwang/ar v0.1.0/go.mod h1:1pcQFAw9mu32b1HPYP7DLR2eqm8/JQxvGHXxmbbsdC4=
github.com/linuxerwang/confish v0.1.0 h1:AA5it7NvLK9nZxmvHq07xGNNDLnUenGJyP2OPp7p/Z4=
github.com/linuxerwang/confish v0.1.0/go.mod h1:sVB1vCxGvMGXi8TmVeFkq7LyFwBhClHedVZZWbh7Zm8=
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type tmplVars struct {
var (
outputDir = flag.String("output-dir", ".", "The output directory for the deb file, defaults to current working directory.")
spec = flag.String("spec-file", "", "The spec file in confish format. If not specified, read from stdin.")
desc = flag.String("desc", "", "The description of the deb file.")
version = flag.String("version", "", "The version of the deb file.")
arch = flag.String("arch", "", "The architecture of the deb file.")
verbose = flag.Bool("v", false, "Output verbose message.")
Expand Down Expand Up @@ -173,6 +174,7 @@ func loadSpec() (*DebSpec, error) {

debSpec.DebCtrl.Arch = *arch
debSpec.DebCtrl.Version = *version
debSpec.DebCtrl.Desc = *desc

return &debSpec, nil
}
Expand Down

0 comments on commit fb4a951

Please sign in to comment.