first commit

This commit is contained in:
2020-10-25 10:00:59 +03:00
commit 0bd6f67397
80 changed files with 4741 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package main
import (
"context"
"os"
"os/signal"
"gitoa.ru/go-4devs/console"
"gitoa.ru/go-4devs/console/example/pkg/command"
)
func main() {
ctx, cancel := context.WithCancel(context.Background())
ch := make(chan os.Signal, 1)
defer close(ch)
signal.Notify(ch, os.Interrupt)
go func() {
<-ch
cancel()
}()
console.Execute(ctx, command.Long())
}