Added start/stop/terminate instance, describe instance support, and improved install docs for development

This commit is contained in:
Ben Duncan
2025-11-12 21:30:25 +08:00
parent 076a9cdf93
commit 191ad659e8
16 changed files with 1203 additions and 313 deletions
+4 -3
View File
@@ -387,9 +387,10 @@ func runimagesImportCmd(cmd *cobra.Command, args []string) {
os.Exit(1)
}
fmt.Println(tmpDir)
defer os.RemoveAll(tmpDir)
fmt.Printf("✅ Image import complete. Image-ID (AMI): %s\n", volumeId)
}
// List remote images available
@@ -398,7 +399,7 @@ func runimagesListCmd(cmd *cobra.Command, args []string) {
//fmt.Println(availableImages)
tableData := pterm.TableData{
{"Name", "Distro", "Version", "Arch"},
{"NAME", "DISTRO", "VERSION", "ARCH", "BOOT"},
}
// Sort A .. Z
@@ -417,7 +418,7 @@ func runimagesListCmd(cmd *cobra.Command, args []string) {
img := utils.AvailableImages[k]
//for _, img := range utils.AvailableImages {
tableData = append(tableData, []string{img.Name, img.Distro, img.Version, img.Arch})
tableData = append(tableData, []string{img.Name, img.Distro, img.Version, img.Arch, img.BootMode})
}
// Create a table with the defined data.