123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- package main
- import (
- "os"
- "github.com/codegangsta/cli"
- "github.com/qiniu/log"
- )
- var CmdUpdate = cli.Command{
- Name: "update",
- Usage: "This command just should be called by ssh shell",
- Description: `
- gogs serv provide access auth for repositories`,
- Action: runUpdate,
- Flags: []cli.Flag{},
- }
- func runUpdate(c *cli.Context) {
-
-
-
-
- w, _ := os.Create("update.log")
- defer w.Close()
- log.SetOutput(w)
- for i, arg := range c.Args() {
- log.Info(i, arg)
- }
-
- }
|