Browse Source

En cours de développement

master
losyme 2 months ago
parent
commit
be82a1319f
  1. 4
      go.mod
  2. 8
      go.sum
  3. 9
      internal/application/cmdline.go

4
go.mod

@ -9,8 +9,8 @@ require (
forge.chapril.org/losyme/config v0.0.0-20211025142334-51a8a7a73a4f
forge.chapril.org/losyme/errors v0.0.0-20211003204336-ad5510c24b40
forge.chapril.org/losyme/kong v0.0.0-20211102220824-8f8a63ae4cca
forge.chapril.org/losyme/logger v0.0.0-20211113180920-9616f4af1412
forge.chapril.org/losyme/minikit v0.0.0-20211113180949-a0dd781070b3
forge.chapril.org/losyme/logger v0.0.0-20211114152309-4801f8e79676
forge.chapril.org/losyme/minikit v0.0.0-20211114152424-7642b8c0bb53
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf
forge.chapril.org/losyme/uuid v0.0.0-20211007082235-8d502169e034
)

8
go.sum

@ -16,10 +16,10 @@ forge.chapril.org/losyme/kong v0.0.0-20211102220824-8f8a63ae4cca h1:VyGatlviG2GA
forge.chapril.org/losyme/kong v0.0.0-20211102220824-8f8a63ae4cca/go.mod h1:sOhHc+IcV5vGNnygTML5/P7Ftmlsf9UB2oL+HQRpsYw=
forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae h1:RdYWXKy+OQNJueb4Qqqo7sL4OY3/TpfUvmoIoH8ua9E=
forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae/go.mod h1:wnVjwnCO2vFLLZ1EgFuFws1n8XLluufsGsdozGYSA7c=
forge.chapril.org/losyme/logger v0.0.0-20211113180920-9616f4af1412 h1:jLqkFHRW25A5KdcCQyKvGH3b8xagQw/YFL7fH2P8BkQ=
forge.chapril.org/losyme/logger v0.0.0-20211113180920-9616f4af1412/go.mod h1:a3fN8yTjq5S/ramr03hIkutKM/35UsijUgRNKHjjlMU=
forge.chapril.org/losyme/minikit v0.0.0-20211113180949-a0dd781070b3 h1:+BxFKuS25GHVUqRgr17D0OWYQYFYmi2/d8NLFqfyg7M=
forge.chapril.org/losyme/minikit v0.0.0-20211113180949-a0dd781070b3/go.mod h1:6vz5i36bkN+C6aK7ABhXdcO6Xu7pDjx1FHiEMf7vk2g=
forge.chapril.org/losyme/logger v0.0.0-20211114152309-4801f8e79676 h1:XGc8rZ/hTW9/mUUAJ7nVtmrqnxeKQFKGs3NO+tnIfgY=
forge.chapril.org/losyme/logger v0.0.0-20211114152309-4801f8e79676/go.mod h1:a3fN8yTjq5S/ramr03hIkutKM/35UsijUgRNKHjjlMU=
forge.chapril.org/losyme/minikit v0.0.0-20211114152424-7642b8c0bb53 h1:LxbGJXY/M1ZS6oo2muEZyXMOdMqy4UrVFSGLURvdZTw=
forge.chapril.org/losyme/minikit v0.0.0-20211114152424-7642b8c0bb53/go.mod h1:X8a2/jwJ5wuoPAK776Ci3KZbK3151M4FHvlrXEiFl4k=
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf h1:5OIlwVBTdvjCXh2JHAh5rq8FgSe1lXuuKDFtO/ZRaRM=
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf/go.mod h1:VNjFKl0Q2vvLDnR9tdNdTIZDLQNlR+gcIGNf2aIYv3o=
forge.chapril.org/losyme/util v0.0.0-20211025142031-fd89d32d86fe h1:xjMUKHxtG8jz57JyOxgNLlRaPLJeQvMV9K3HNlhKDB8=

9
internal/application/cmdline.go

@ -9,6 +9,7 @@ package application
import "forge.chapril.org/losyme/cmdline"
type cmdLine struct {
demo bool
strValue string
runAfter func() error
}
@ -38,8 +39,16 @@ func (app *Application) cmdlineInitialize(c *cmdline.CmdLine) {
cmdEncrypt.StringFlag(&cl.strValue, "string", "", "string to encrypt")
cmdSetup := cmdline.NewCmd(
"setup",
"application setup",
)
cmdSetup.BoolFlag(&cl.demo, "demo", false, "demonstration mode")
c.AddCmd(cmdDecrypt)
c.AddCmd(cmdEncrypt)
c.AddCmd(cmdSetup)
}
/*

Loading…
Cancel
Save