MCPcopy Create free account
hub / github.com/codegangsta/gin / EnvAction

Function EnvAction

main.go:214–228  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

212}
213
214func EnvAction(c *cli.Context) {
215 logPrefix := c.GlobalString("logPrefix")
216 logger.SetPrefix(fmt.Sprintf("[%s] ", logPrefix))
217
218 // Bootstrap the environment
219 env, err := envy.Bootstrap()
220 if err != nil {
221 logger.Fatalln(err)
222 }
223
224 for k, v := range env {
225 fmt.Printf("%s: %s\n", k, v)
226 }
227
228}
229
230func build(builder gin.Builder, runner gin.Runner, logger *log.Logger) {
231 logger.Println("Building...")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected