Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Name = "murex"
const (
Major = 7
Minor = 2
Revision = 79
Revision = 101
)

var (
Expand Down
153 changes: 76 additions & 77 deletions integrations/yarn_any.mx
Original file line number Diff line number Diff line change
@@ -1,88 +1,87 @@
!if { which yarn } then {
return
}
if { which yarn } then {

private yarn.autocomplete.1 {
cast json
autocomplete = %{}

trypipe <!null> {
autocomplete <~ ${
g ${yarn <!null> bin}/* \
-> regexp s,^.*/,, \
-> foreach --jmap bin { $bin } { out "yarn bin" }
}
}
private yarn.autocomplete.1 {
cast json
autocomplete = %{}

trypipe <!null> {
autocomplete <~ ${ yarn help -> tabulate: --key-value --split-comma --key-inc-hint --map }
}
trypipe <!null> {
autocomplete <~ ${
g ${yarn <!null> bin}/* \
-> regexp s,^.*/,, \
-> foreach --jmap bin { $bin } { out "yarn bin" }
}
}

$autocomplete
}
trypipe <!null> {
autocomplete <~ ${ yarn help -> tabulate: --key-value --split-comma --key-inc-hint --map }
}

/#test unit private yarn.autocomplete.1 %{
StdoutType: json
StdoutIsMap: true
StdoutGreaterThan: 10
}#/
$autocomplete
}

private yarn.autocomplete.commands {
yarn help \
-> [Commands..Run]re \
-> [:1] \
-> cast str \
-> foreach --jmap cmd { $cmd } { yarn help $cmd -> [Usage..Options]rebt }
}
/#test unit private yarn.autocomplete.1 %{
StdoutType: json
StdoutIsMap: true
StdoutGreaterThan: 10
}#/

/#test unit private yarn.autocomplete.commands %{
StdoutType: json
StdoutIsMap: true
StdoutGreaterThan: 10
}#/
private yarn.autocomplete.commands {
yarn help \
-> [Commands..Run]re \
-> [:1] \
-> cast str \
-> foreach --jmap cmd { $cmd } { yarn help $cmd -> [Usage..Options]rebt }
}

bg <!null> {
MODULE.yarn_autocomplete_commands = yarn.autocomplete.commands()
}
/#test unit private yarn.autocomplete.commands %{
StdoutType: json
StdoutIsMap: true
StdoutGreaterThan: 10
}#/

autocomplete set yarn %[
{
CacheTTL: 120
DynamicDesc: '{yarn.autocomplete.1}'
Optional: true
AllowMultiple: true
AllowNoFlagValue: true
FlagValues: {
"*": [
{ IncDirs: true }
{ Goto: "/0" }
]
}
bg <!null> {
MODULE.yarn_autocomplete_commands = yarn.autocomplete.commands()
}
{
DynamicDesc: '{
cast json
if { g package.json } then {
open package.json -> [ scripts ]

autocomplete set yarn %[
{
CacheTTL: 120
DynamicDesc: '{yarn.autocomplete.1}'
Optional: true
AllowMultiple: true
AllowNoFlagValue: true
FlagValues: {
"*": [
{ IncDirs: true }
{ Goto: "/0" }
]
}
}'
Optional: true
}
/#{
DynamicDesc: '{ $MODULE.yarn_autocomplete_commands }'
FlagValues: {
"*": [{
DynamicDesc: '{
yarn help $MOD_cmd -> tabulate: --key-value --split-comma --key-inc-hint --map
})
AllowMultiple: true
AllowNoFlagValue: true
FlagValues: {"*": [
{ IncDirs: true }
{ Goto: "/2/add/0" }
]}
}],)
}]
}
}#/
]
{
DynamicDesc: '{
cast json
if { g package.json } then {
open package.json -> [ scripts ]
}
}'
Optional: true
}
/#{
DynamicDesc: '{ $MODULE.yarn_autocomplete_commands }'
FlagValues: {
"*": [{
DynamicDesc: '{
yarn help $MOD_cmd -> tabulate: --key-value --split-comma --key-inc-hint --map
})
AllowMultiple: true
AllowNoFlagValue: true
FlagValues: {"*": [
{ IncDirs: true }
{ Goto: "/2/add/0" }
]}
}],)
}]
}
}#/
]
}
2 changes: 1 addition & 1 deletion version.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading