File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,14 @@ func init() {
46
46
47
47
func main () {
48
48
bot := cli.App {
49
- Name : "golangoss-bluesky" ,
49
+ Name : "golangoss-bluesky" ,
50
+ Description : "A little bot to post interesting Github projects to Bluesky" ,
51
+ HideVersion : true ,
52
+ Authors : []* cli.Author {
53
+ {
54
+ Name : "Till Klampeckel" ,
55
+ },
56
+ },
50
57
Flags : []cli.Flag {
51
58
& cli.StringFlag {
52
59
Name : "bluesky-app-key" ,
@@ -81,6 +88,7 @@ func main() {
81
88
},
82
89
83
90
Action : func (cCtx * cli.Context ) error {
91
+ // FIXME: run this in a control loop; or we crash the app
84
92
client , err := bk .Dial (ctx , bk .ServerBskySocial )
85
93
if err != nil {
86
94
return fmt .Errorf ("failed to open connection: %v" , err )
@@ -93,7 +101,7 @@ func main() {
93
101
return fmt .Errorf ("you're not allowed to use your full-access credentials, please create an appkey" )
94
102
case errors .Is (err , bk .ErrLoginUnauthorized ):
95
103
return fmt .Errorf ("username of application password seems incorrect, please double check" )
96
- case err != nil :
104
+ default :
97
105
return fmt .Errorf ("something else went wrong, please look at the returned error" )
98
106
}
99
107
}
You can’t perform that action at this time.
0 commit comments