File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ pub enum Command {
34
34
#[ arg( ) ]
35
35
name : String ,
36
36
} ,
37
+ /// Generate OpenGraph images for the specified crates
38
+ GenerateOgImage {
39
+ /// Crate names to generate OpenGraph images for
40
+ #[ arg( required = true ) ]
41
+ names : Vec < String > ,
42
+ } ,
37
43
ProcessCdnLogQueue ( jobs:: ProcessCdnLogQueue ) ,
38
44
SyncAdmins {
39
45
/// Force a sync even if one is already in progress
@@ -143,6 +149,11 @@ pub async fn run(command: Command) -> Result<()> {
143
149
144
150
jobs:: CheckTyposquat :: new ( & name) . enqueue ( & mut conn) . await ?;
145
151
}
152
+ Command :: GenerateOgImage { names } => {
153
+ for name in names {
154
+ jobs:: GenerateOgImage :: new ( name) . enqueue ( & mut conn) . await ?;
155
+ }
156
+ }
146
157
Command :: SendTokenExpiryNotifications => {
147
158
jobs:: SendTokenExpiryNotifications
148
159
. enqueue ( & mut conn)
You can’t perform that action at this time.
0 commit comments