2013-11-05 17:52:31 +00:00
|
|
|
package gitmedia
|
|
|
|
|
|
|
|
import (
|
|
|
|
core ".."
|
|
|
|
)
|
|
|
|
|
|
|
|
type ConfigCommand struct {
|
|
|
|
*Command
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *ConfigCommand) Run() {
|
|
|
|
config := core.Config()
|
2014-01-24 01:30:48 +00:00
|
|
|
core.Print("Endpoint=%s", config.Endpoint)
|
|
|
|
for _, env := range core.Environ() {
|
|
|
|
core.Print(env)
|
|
|
|
}
|
2013-11-05 17:52:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
registerCommand("config", func(c *Command) RunnableCommand {
|
|
|
|
return &ConfigCommand{Command: c}
|
|
|
|
})
|
|
|
|
}
|