mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
feat(oven-sh/bun): add run and x command
This commit is contained in:
parent
2f819e3ef3
commit
38d1972761
@ -196,6 +196,27 @@ func NewCommand(l log.Logger, cache cache.Cache) *Command {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "x",
|
||||
Description: "Execute a package binary (CLI), installing if needed",
|
||||
Flags: globalFlags(nil),
|
||||
Execute: inst.run,
|
||||
},
|
||||
{
|
||||
Name: "run",
|
||||
Description: "Execute a file with Bun",
|
||||
Args: tree.Args{
|
||||
{
|
||||
Name: "script",
|
||||
Description: "Run scripts",
|
||||
Suggest: func(ctx context.Context, t tree.Root, r *readline.Readline) []goprompt.Suggest {
|
||||
return suggests.List(inst.scripts(ctx, "."))
|
||||
},
|
||||
},
|
||||
},
|
||||
Flags: globalFlags(nil),
|
||||
Execute: inst.run,
|
||||
},
|
||||
{
|
||||
Name: "install",
|
||||
Description: "Install dependencies for a package.json",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user