mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 12:07:23 +00:00
Move exit helper func above first build target
This commit is contained in:
16
mage.go
16
mage.go
@ -78,6 +78,14 @@ func getRemotePackages() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// proper error reporting and exit code
|
||||||
|
func exit(err error) {
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%+v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Build kbtui with emoji lookup support
|
// Build kbtui with emoji lookup support
|
||||||
func BuildEmoji() error {
|
func BuildEmoji() error {
|
||||||
mg.Deps(getRemotePackages)
|
mg.Deps(getRemotePackages)
|
||||||
@ -100,14 +108,6 @@ func BuildEmoji() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// proper error reporting and exit code
|
|
||||||
func exit(err error) {
|
|
||||||
if err != nil {
|
|
||||||
fmt.Fprintf(os.Stderr, "%+v\n", err)
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Build kbtui with just the basic commands.
|
// Build kbtui with just the basic commands.
|
||||||
func Build() {
|
func Build() {
|
||||||
mg.Deps(getRemotePackages)
|
mg.Deps(getRemotePackages)
|
||||||
|
|||||||
Reference in New Issue
Block a user