mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
24 lines
461 B
Go
24 lines
461 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/asciinema/asciinema-cli/cli"
|
|
"github.com/asciinema/asciinema-cli/commands"
|
|
"github.com/asciinema/asciinema-cli/util"
|
|
)
|
|
|
|
func main() {
|
|
cli := &cli.CLI{
|
|
Commands: map[string]cli.CommandBuilderFunc{
|
|
"rec": commands.Record,
|
|
"auth": commands.Auth,
|
|
"version": commands.Version,
|
|
},
|
|
HelpCommand: &commands.HelpCommand{},
|
|
ConfigLoader: &util.FileConfigLoader{},
|
|
}
|
|
|
|
os.Exit(cli.Run(os.Args[1:]))
|
|
}
|