Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit ddcb830

Browse files
committed
Add open-url support
1 parent 03f1cfe commit ddcb830

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/cmd/pack.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ var packCmd = cobra.Command{
3838
}
3939
}
4040

41-
project.Build(projectPath, outDir)
41+
if err := project.Build(projectPath, outDir); err != nil {
42+
log.Fatal(err)
43+
}
4244
},
4345
}

workflow/workflow.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var argumentType = map[string]int64{
1717
var objectType = map[string]string{
1818
"clipboard": "alfred.workflow.output.clipboard",
1919
"keyword": "alfred.workflow.input.keyword",
20+
"open-url": "alfred.workflow.action.openurl",
2021
"script": "alfred.workflow.action.script",
2122
"script-filter": "alfred.workflow.input.scriptfilter",
2223
}
@@ -62,6 +63,11 @@ func NewFromConfig(path string, c config.Config) (*Info, error) {
6263
Readme: c.Readme,
6364
WebAddress: c.URL,
6465
Version: c.Version,
66+
Variables: c.Variables,
67+
}
68+
69+
for varName := range i.Variables {
70+
i.VariablesDontExport = append(i.VariablesDontExport, varName)
6571
}
6672

6773
// Build workflow connections.

0 commit comments

Comments
 (0)