Skip to content

Commit

Permalink
Add git-base option
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnjaeshin committed Aug 21, 2024
1 parent be5585f commit e5271a5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions atlasexec/atlas_migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ type (
Format string
DevURL string

DirURL string
Latest uint64
Writer io.Writer
Base string
Web bool
DirURL string
Latest uint64
Writer io.Writer
Base string
GitBase string
Web bool
}
// MigrateTestParams are the parameters for the `migrate test` command.
MigrateTestParams struct {
Expand Down Expand Up @@ -440,6 +441,9 @@ func (p *MigrateLintParams) AsArgs() ([]string, error) {
if p.Base != "" {
args = append(args, "--base", p.Base)
}
if p.GitBase != "" {
args = append(args, "--git-base", p.GitBase)
}
if p.Latest > 0 {
args = append(args, "--latest", strconv.FormatUint(p.Latest, 10))
}
Expand Down

0 comments on commit e5271a5

Please sign in to comment.