funcs.go 1.2 KB

12345678910111213141516171819202122232425262728
  1. package cli
  2. // BashCompleteFunc is an action to execute when the bash-completion flag is set
  3. type BashCompleteFunc func(*Context)
  4. // BeforeFunc is an action to execute before any subcommands are run, but after
  5. // the context is ready if a non-nil error is returned, no subcommands are run
  6. type BeforeFunc func(*Context) error
  7. // AfterFunc is an action to execute after any subcommands are run, but after the
  8. // subcommand has finished it is run even if Action() panics
  9. type AfterFunc func(*Context) error
  10. // ActionFunc is the action to execute when no subcommands are specified
  11. type ActionFunc func(*Context) error
  12. // CommandNotFoundFunc is executed if the proper command cannot be found
  13. type CommandNotFoundFunc func(*Context, string)
  14. // OnUsageErrorFunc is executed if an usage error occurs. This is useful for displaying
  15. // customized usage error messages. This function is able to replace the
  16. // original error messages. If this function is not set, the "Incorrect usage"
  17. // is displayed and the execution is interrupted.
  18. type OnUsageErrorFunc func(context *Context, err error, isSubcommand bool) error
  19. // FlagStringFunc is used by the help generation to display a flag, which is
  20. // expected to be a single line.
  21. type FlagStringFunc func(Flag) string
PANIC: session(release): write data/sessions/8/d/8d61fa6a5dc0d18d: no space left on device

PANIC

session(release): write data/sessions/8/d/8d61fa6a5dc0d18d: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)