File: main.go

package info (click to toggle)
golang-github-satta-ifplugo 0.0~git20200508.ca679be-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 100 kB
  • sloc: makefile: 5
file content (16 lines) | stat: -rw-r--r-- 218 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import (
	"fmt"
	"os"

	"github.com/satta/ifplugo"
)

func main() {
	if len(os.Args) < 2 {
		fmt.Println("Usage: ifplugo-status <iface>")
		os.Exit(1)
	}
	fmt.Println(ifplugo.GetLinkStatus(os.Args[1]))
}