Skip to content

Commit

Permalink
version 0.2.9
Browse files Browse the repository at this point in the history
- update selection to include v1.7.0
  • Loading branch information
harivyasi committed Jul 12, 2023
1 parent 6a07d35 commit d15507a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions cli/root-instance-new.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func getFreshPort(kind string) (port uint64) {
var firstPort uint64
if assigned := conf.GetInt(joinKey(stateWord, "first_port")); assigned == 0 {
firstPort = 4000
conf.Set(joinKey(stateWord, "first_port"), firstPort)
} else {
firstPort = uint64(assigned)
}
Expand Down Expand Up @@ -245,15 +246,22 @@ func processInstanceCreateCmd(cmd *cobra.Command, details map[string]string) (cr
details["givenName"] = getString("Please enter the name of the instance you want to create", newInstanceValidate)
}
if askUse {
switch selectOpt([]string{"latest - 1.6.0", "1.5.4", "1.5.3"}, "Select the version of ELN you want to install") {
case "1.6.0":
details["use"] = composeURL
versions := []string{"1.7.0", "1.6.2", "1.5.4"}
if conf.IsSet(joinKey(stateWord, "latest_eln")) {
latest := conf.GetString(joinKey(stateWord, "latest_eln"))
if latest != "1.7.0" {
versions = append([]string{latest + " - latest stable version"}, versions...)
}
}
switch selectOpt(versions, "Select the version of ELN you want to install") {
case "1.7.0":
details["use"] = "https://raw.githubusercontent.com/Chemotion/ChemCLI/6a07d35947595f2fedd7bbe82b657b9d910db6da/payload/docker-compose.yml"
case "1.6.2":
details["use"] = "https://raw.githubusercontent.com/Chemotion/ChemCLI/e577832edaba14fa21ee9aa9288e4b00052729c8/payload/docker-compose.yml"
case "1.5.4":
details["use"] = "https://raw.githubusercontent.com/Chemotion/ChemCLI/548ead617a552307f30d5051e72c01d95e99b30f/payload/docker-compose.yml"
case "1.5.3":
details["use"] = "https://raw.githubusercontent.com/Chemotion/ChemCLI/5bacb0c83342ec1bb675057cbbca8e9f761236e9/payload/docker-compose.yml"
default:
details["use"] = composeURL
details["use"] = composeURL // catches latest
}
}
if askAddress {
Expand Down
2 changes: 1 addition & 1 deletion cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const (
// configuration and logging
var (
// version number, here to allow override
versionCLI = "0.2.8"
versionCLI = "0.2.9"
// current shell
shell string
// currently selected instance
Expand Down

0 comments on commit d15507a

Please sign in to comment.