1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
;;; docker.el --- Emacs interface to Docker -*- lexical-binding: t -*-
;; Author: Philippe Vaucher <philippe.vaucher@gmail.com>
;; URL: https://github.com/Silex/docker.el
;; Keywords: filename, convenience
;; Version: 0.7.0
;; Package-Requires: ((emacs "24.5") (dash "2.14.1") (docker-tramp "0.1") (magit-popup "2.12.3") (s "1.12.0") (tablist "0.70") (json-mode "1.7.0"))
;; This file is NOT part of GNU Emacs.
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Commentary:
;; # Emacs interface to Docker!
;;
;; This package allows you to manipulate docker images, containers & more from Emacs.
;;; Code:
(require 'magit-popup)
(require 'docker-group)
(require 'docker-utils)
(require 'docker-container)
(require 'docker-image)
(require 'docker-machine)
(require 'docker-network)
(require 'docker-volume)
;;;###autoload (autoload 'docker "docker" nil t)
(magit-define-popup docker
"Popup for docker."
'docker
:man-page "docker"
:options '((?H "Host" "--host "))
:actions `("Docker"
(?c "Containers" ,(docker-utils-set-then-call 'docker-arguments 'docker-containers))
(?i "Images" ,(docker-utils-set-then-call 'docker-arguments 'docker-images))
(?n "Networks" ,(docker-utils-set-then-call 'docker-arguments 'docker-networks))
(?v "Volumes" ,(docker-utils-set-then-call 'docker-arguments 'docker-volumes))
"Other"
(?M "Machines" docker-machines)))
(provide 'docker)
;;; docker.el ends here
|