aboutsummaryrefslogtreecommitdiff
path: root/brother-info/main.go
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2019-04-13 00:06:51 +0200
committerPřemysl Janouch <p@janouch.name>2019-04-13 00:06:51 +0200
commit3080194dc11f6fb6fd40bc51ccc7595a602b7b68 (patch)
tree3dfca24f9bcd88e2ca2494813aea861ae5c53a86 /brother-info/main.go
parentb2733bf3fd5213a1fc18de064cf5f5e5606acdfe (diff)
downloadsklad-3080194dc11f6fb6fd40bc51ccc7595a602b7b68.tar.gz
sklad-3080194dc11f6fb6fd40bc51ccc7595a602b7b68.tar.xz
sklad-3080194dc11f6fb6fd40bc51ccc7595a602b7b68.zip
Rename and improve the information tool
Diffstat (limited to 'brother-info/main.go')
-rw-r--r--brother-info/main.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/brother-info/main.go b/brother-info/main.go
deleted file mode 100644
index a41d5e0..0000000
--- a/brother-info/main.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package main
-
-import (
- "log"
-
- "janouch.name/sklad/ql"
-)
-
-func main() {
- printer, err := ql.Open()
- if err != nil {
- log.Fatalln(err)
- }
- if printer == nil {
- log.Fatalln("no suitable printer found")
- }
-
- defer printer.Close()
-
- if err := printer.Initialize(); err != nil {
- log.Fatalln(err)
- }
- if err := printer.UpdateStatus(); err != nil {
- log.Fatalln(err)
- }
- log.Printf("status\n%s", printer.LastStatus)
-}