Skip to content

Commit

Permalink
Improve docs about --pack
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Aug 28, 2024
1 parent 5ef0a8e commit 1af2833
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ Flags:
-T, --target="windows" Target OS for which the code is compiled
-A, --arch="amd64" Target architecture for which the code is compiled
--release=STRING Specifies the rpm package tag version
--pack=PACK,... Pack in the specified format after the build is
complete
-D, --destination="dest" Specify the package save destination
--pack=PACK,... Packaged in a specific format. supported: zip,
tar, sh, rpm
--compression=STRING Specifies the compression method
```

Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ Flags:
-T, --target="windows" Target OS for which the code is compiled
-A, --arch="amd64" Target architecture for which the code is compiled
--release=STRING Specifies the rpm package tag version
--pack=PACK,... Pack in the specified format after the build is
complete
-D, --destination="dest" Specify the package save destination
--pack=PACK,... Packaged in a specific format. supported: zip,
tar, sh, rpm
--compression=STRING Specifies the compression method
```

Expand Down
4 changes: 2 additions & 2 deletions cmd/bali/command_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ type BuildCommand struct {
Target string `name:"target" short:"T" help:"Target OS for which the code is compiled" default:"${target}"` // windows/darwin
Arch string `name:"arch" short:"A" help:"Target architecture for which the code is compiled" default:"${arch}"` // amd64/arm64 ...
Release string `name:"release" help:"Specifies the rpm package tag version"` // --release $TASK_ID
Pack []string `name:"pack" help:"Pack in the specified format after the build is complete"`
Destination string `name:"destination" short:"D" help:"Specify the package save destination" default:"dest"`
Pack []string `name:"pack" help:"Packaged in a specific format. supported: zip, tar, sh, rpm"`
Compression string `name:"compression" help:"Specifies the compression method"`
}

Expand All @@ -23,8 +23,8 @@ func (c *BuildCommand) Run(g *Globals) error {
Target: c.Target,
Arch: c.Arch,
Release: c.Release,
Pack: c.Pack,
Destination: c.Destination,
Pack: c.Pack,
Compression: strings.ToLower(c.Compression),
Verbose: g.Verbose,
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/barrow/barrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ type BarrowCtx struct {
Target string
Arch string
Release string
Pack []string // pack: zip, tgz, stgz,rpm
Destination string
Pack []string // supported: zip, tar, sh, rpm
Compression string
Verbose bool
extraEnv map[string]string
Expand Down

0 comments on commit 1af2833

Please sign in to comment.