New tg ID schema and initial importer #35

Merged
amigan merged 17 commits from reid into trunk 2024-11-15 13:28:05 -05:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 9ad1ed17c2 - Show all commits

View file

@ -44,3 +44,6 @@ backupplain:
test:
go test -v ./...
run:
go run -v ./cmd/stillbox/ serve

View file

@ -24,7 +24,7 @@ func main() {
}
rootCmd.PersistentFlags().BoolP("version", "V", false, "show version")
cfg := config.New(rootCmd)
rootCmd.Run = func(cmd *cobra.Command, args []string) {
rootCmd.PreRun = func(cmd *cobra.Command, args []string) {
v, _ := rootCmd.PersistentFlags().GetBool("version")
if v {
fmt.Print(version.String())