This commit is contained in:
Aaron Meihm 2017-07-19 10:41:34 -05:00
Родитель c327638a67
Коммит bba2ac14e0
3 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -9,8 +9,8 @@ package main
import ( import (
"bufio" "bufio"
"fmt" "fmt"
"os"
"github.com/mozilla/scribe" "github.com/mozilla/scribe"
"os"
"strings" "strings"
) )

Просмотреть файл

@ -21,18 +21,18 @@ type pkgmgrResult struct {
} }
type pkgmgrInfo struct { type pkgmgrInfo struct {
name string name string
version string version string
pkgtype string pkgtype string
arch string arch string
} }
// Package information from the system as returned by QueryPackages(). // Package information from the system as returned by QueryPackages().
type PackageInfo struct { type PackageInfo struct {
Name string `json:"name" yaml:"name"` // Package name. Name string `json:"name" yaml:"name"` // Package name.
Version string `json:"version" yaml:"version"` // Package version. Version string `json:"version" yaml:"version"` // Package version.
Type string `json:"type" yaml:"type"` // Package type. Type string `json:"type" yaml:"type"` // Package type.
Arch string `json:"arch" yaml:"arch"` // Package architecture Arch string `json:"arch" yaml:"arch"` // Package architecture
} }
// Query packages on the system, returning a slice of all identified packages // Query packages on the system, returning a slice of all identified packages

Просмотреть файл

@ -9,8 +9,8 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"os"
"github.com/mozilla/scribe" "github.com/mozilla/scribe"
"os"
) )
var flagDebug bool var flagDebug bool