Closed nxtcoder36 closed 1 week ago
This pull request adds new commands and improves existing functionality in the Kloudlite CLI tool. The changes include adding a 'stopall' command, enhancing the 'status' and 'connect' commands, and improving error handling and user feedback throughout the codebase.
classDiagram
class client {
+startContainer(klconfHash string) string
+waitForSshReady(port int, containerId string) error
+stopAllContainers() error
}
class spinner {
+UpdateMessage(message string) func()
}
client --> spinner : uses
client : +startContainer(klconfHash string)
client : +waitForSshReady(port int, containerId string)
client : +stopAllContainers() error
classDiagram
class stopAllCmd {
+Run(cmd *cobra.Command, args []string)
}
class dockerclient {
+NewClientWithOpts(...)
+ContainerList(...)
+ContainerStop(...)
+ContainerRemove(...)
}
stopAllCmd --> dockerclient : uses
stopAllCmd : +Run(cmd *cobra.Command, args []string)
Change | Details | Files |
---|---|---|
Added 'stopall' command to stop all running boxes |
|
cmd/box/klbox.go cmd/box/stop-all.go |
Enhanced status command with improved error handling and output |
|
cmd/status/status.go |
Improved container management and SSH functionality |
|
cmd/box/boxpkg/utils.go cmd/box/boxpkg/ssh.go pkg/sshclient/ssh.go |
Enhanced user feedback and progress indication |
|
cmd/box/boxpkg/utils.go cmd/box/boxpkg/packagectrl/main.go k3s/impl.go |
Improved error handling and edge cases in various commands |
|
cmd/cluster/down.go cmd/connect/connect.go |
Summary by Sourcery
Add a new 'stop-all' command to stop all running containers and fix a typo in the SSH readiness function name. Enhance user feedback with updated spinner messages and improve error handling in the status command.
New Features:
Bug Fixes:
Enhancements: