You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# Deprecated
2
2
3
-
This project is officially deprecated in favor of [Docker Machine](https://docs.docker.com/machine/). The code and documentation here only exist as a reference for users who have not yet switched over (but please do soon).
3
+
This project is officially deprecated in favor of [Docker
4
+
Machine](https://docs.docker.com/machine/). The code and documentation here
5
+
only exist as a reference for users who have not yet switched over (but please
6
+
do soon). The recommended way to install Machine is with the [Docker
@@ -21,8 +32,6 @@ func (e unknownCommandError) Error() string {
21
32
}
22
33
23
34
funcmain() {
24
-
fmt.Fprintf(os.Stderr, "\n WARNING: the %q command is officially deprecated.\n Please switch to Docker Machine (https://docs.docker.com/machine/)\n as soon as possible.\n\n", filepath.Base(os.Args[0]))
25
-
26
35
// os.Exit will terminate the program at the place of call without running
27
36
// any deferred cleanup statements. It might cause unintended effects. To
28
37
// be safe, we wrap the program in run() and only os.Exit() outside the
@@ -51,8 +60,10 @@ func run() error {
51
60
case"config", "cfg":
52
61
returncmdConfig()
53
62
case"init":
63
+
printDeprecationWarning()
54
64
returncmdInit()
55
65
case"up", "start", "boot", "resume":
66
+
printDeprecationWarning()
56
67
returncmdUp()
57
68
case"save", "suspend":
58
69
returncmdSave()
@@ -91,3 +102,27 @@ func run() error {
91
102
returnunknownCommandError{cmd: cmd}
92
103
}
93
104
}
105
+
106
+
funcprintDeprecationWarning() {
107
+
var (
108
+
warningstring
109
+
)
110
+
111
+
// Try to get the warning from the Github raw URL. If there's any
112
+
// failure along the way, e.g. network, just fall back to the default
0 commit comments