🔖 Ic-merge is working now
This commit is contained in:
parent
8a3da4c5fe
commit
03fa525a00
5 changed files with 58 additions and 33 deletions
|
|
@ -2,7 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
c "codeberg.org/danjones000/utils/cli/context"
|
||||
|
|
@ -26,9 +26,9 @@ func main() {
|
|||
g, err := m.Merge(ctx)
|
||||
e.HandleErr(err)
|
||||
|
||||
jsout := json.NewEncoder(os.Stdout)
|
||||
jsout.SetIndent("", "\t")
|
||||
err = jsout.Encode(g)
|
||||
var out string
|
||||
out, err = m.Write(ctx, g)
|
||||
e.HandleErr(err)
|
||||
// */
|
||||
|
||||
fmt.Printf("Saved to %s\n", out)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue