mirror of
https://github.com/docker/docs.git
synced 2026-03-31 16:28:59 +07:00
This also lays the foundation for the possibility of log drivers in the future, if it is decided that is a direction to pursue. Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
19 lines
223 B
Go
19 lines
223 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/docker/machine/log"
|
|
|
|
"github.com/codegangsta/cli"
|
|
)
|
|
|
|
func cmdUrl(c *cli.Context) {
|
|
url, err := getHost(c).GetURL()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
fmt.Println(url)
|
|
}
|