diff --git a/src/go.ts b/src/go.ts index 3d48fb6a67a1..a523ff2ed72b 100644 --- a/src/go.ts +++ b/src/go.ts @@ -675,6 +675,14 @@ const completionSpec: Fig.Spec = { name: "-v", description: "Print information about removed modules", }, + { + name: "-o", + description: + 'Create the vendor directory at the given path instead of "vendor". The go command can only use a vendor directory named "vendor" within the module root directory, so this flag is primarily useful for other tools', + args: { + name: "outdir", + }, + }, ], }, { @@ -800,6 +808,30 @@ const completionSpec: Fig.Spec = { isVariadic: true, }, }, + { + name: "vendor", + description: + "Construct a directory named vendor in the workspace's root directory", + options: [ + { + name: "-e", + description: + "Attempt to proceed despite errors encountered while loading packages", + }, + { + name: "-v", + description: "Print information about removed modules", + }, + { + name: "-o", + description: + 'Create the vendor directory at the given path instead of "vendor". The go command can only use a vendor directory named "vendor" within the module root directory, so this flag is primarily useful for other tools', + args: { + name: "outdir", + }, + }, + ], + }, ], }, {