Design Overview update
Some checks are pending
Build & Upload tux-dock / build (push) Waiting to run
Some checks are pending
Build & Upload tux-dock / build (push) Waiting to run
This commit is contained in:
parent
22df65add9
commit
fb59f0f19d
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +113,8 @@ public:
|
|||
private:
|
||||
static void runCommand(const std::string& cmd);
|
||||
std::vector<std::pair<std::string, std::string>> getContainerList() const;
|
||||
/* NEW helper – retrieves all images */
|
||||
std::vector<std::pair<std::string, std::string>> getImageList() const;
|
||||
std::string selectContainer(const std::string& prompt);
|
||||
};
|
||||
```
|
||||
|
|
@ -134,6 +136,7 @@ private:
|
|||
- `showContainerIP` — display a container’s IP address.
|
||||
- `runCommand` — helper to invoke shell commands.
|
||||
- `getContainerList` — retrieve Docker container IDs and names for selection menus.
|
||||
- `getImageList` — gather local Docker image IDs and names for menus and reporting.
|
||||
- `selectContainer` — present a menu to pick a container interactively.
|
||||
|
||||
This makes the codebase **extensible** — adding new Docker features like `docker logs` or `docker stats` requires only a small new method.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue