123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- Kurz URl shortener app
- kurz
- -v Verbose (default: false).
- help Display help (cobra builtin).
- server Serve kurz.
- -p|--port <port_id> Serve on this IP port (default: 80).
- install Install kurz completely.
- config Install the configuration define by command line to ~.
- schema Install the kurz database schema.
- export Export kurz data.
- -o <file> Specify a destination file.
- config Export kurz configuration.
- content Export kurz content.
- uninstall Uninstall kurz completely.
- config Uninstall the curz configuration file from ~.
- schema Uninstall the curz database schema.
- */
- package main
- import (
- // "fmt"
- "code.osinet.fr/fgm/kurz/command"
- // "code.osinet.fr/fgm/kurz/storage"
- // "code.osinet.fr/fgm/kurz/strategy"
- // "log"
- )
- func main() {
- command.Build()
- // err := storage.Service.Open()
- // if err != nil {
- // log.Fatal(err)
- // }
- // defer storage.Service.Close()
- //
- // fmt.Print(strategy.Statistics.Refresh(storage.Service))
- }
|