Add --channel flag

andybalholm
Mar 11, 2023, 11:21 PM
534I6MRXZVDW5W5OXRBCSTJ2WFZ4ECL6UQCIUNB46LSH3IJXJWDAC

Dependencies

  • [2] KZ4XMKSP Make a temporary clone of the repository
  • [3] RTQQLOCO Use real metadata, but no content yet
  • [*] Y7VFVY6E Initial dummy version

Change contents

  • edit in main.go at line 15
    [2.90]
    [5.73]
    var channel = flag.String("channel", "main", "which channel to export")
  • replacement in main.go at line 56
    [2.614][2.614:681]()
    _, err = exec.Command("pijul", "clone", *repo, tempRepo).Output()
    [2.614]
    [2.681]
    _, err = exec.Command("pijul", "clone", "--channel", *channel, *repo, tempRepo).Output()