-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added commands to restart running containers and to open TTY (#48)
* handled GObject subclasses registration to ensure compatibility with different versions of Gnome Shell * added restart button to the menu * added function to open an interactive shell This required the introduction of a new method within the Docker module and consequently a new action for DockerMenuItem. Consider refactoring to handle all the logic to produce the final Docker command inside the Docker module. * minor changes to error messages, deleted typos * applied refactoring to move Docker logic in its own module * replaced var with const for utility functions declarations * general refactoring, moved gnome-shell version check into utils module * added EditorConfig file, adjusted files indentation to be consistent with the configuration * handled errors when running interactive commands In case of failure launching an interactive command, a second shell is opened within the terminal emulator to let the user acknowledge the error. * added fallback to /bin/sh when bash isn't available on the container * minor refactoring * applied refactoring to the functions managing Docker commands * refactored code to replace enum commands with actions; switch statements to obtain labels and commands * replaced actions enum with a dictionary containing infos about actions This allows to avoid the switch method for the action label and to move the isInteractive information from the command to the real action
- Loading branch information
1 parent
06e15b5
commit e26d15c
Showing
9 changed files
with
262 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
[**] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"uuid": "docker_status@gpouilloux", | ||
"shell-version": [ | ||
"3.14", | ||
"3.16", | ||
"3.18", | ||
"3.20", | ||
"3.21", | ||
"3.22", | ||
"3.24", | ||
"3.26", | ||
"3.28", | ||
"3.30", | ||
"3.32" | ||
], | ||
"description": "A status menu for managing docker containers.", | ||
"name": "Docker Integration", | ||
"url": "https://github.com/gpouilloux/gnome-shell-extension-docker" | ||
} | ||
"uuid": "docker_status@gpouilloux", | ||
"shell-version": [ | ||
"3.14", | ||
"3.16", | ||
"3.18", | ||
"3.20", | ||
"3.21", | ||
"3.22", | ||
"3.24", | ||
"3.26", | ||
"3.28", | ||
"3.30", | ||
"3.32", | ||
"3.34" | ||
], | ||
"description": "A status menu for managing docker containers.", | ||
"name": "Docker Integration", | ||
"url": "https://github.com/gpouilloux/gnome-shell-extension-docker" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.