git-lfs/commands/command_config.go
2014-06-02 09:35:22 -06:00

32 lines
534 B
Go

package gitmedia
import (
core ".."
)
type ConfigCommand struct {
*Command
}
func (c *ConfigCommand) Run() {
config := core.Config
if endpoint := config.Endpoint(); len(endpoint) > 0 {
core.Print("Endpoint=%s", endpoint)
}
for _, remote := range config.Remotes() {
core.Print("Endpoint (%s)=%s", remote, config.RemoteEndpoint(remote))
}
for _, env := range core.Environ() {
core.Print(env)
}
}
func init() {
registerCommand("config", func(c *Command) RunnableCommand {
return &ConfigCommand{Command: c}
})
}