decred.org/dcrdex@v1.0.5/client/cmd/bisonw/main_notray.go (about)

     1  // This code is available on the terms of the project LICENSE.md file,
     2  // also available online at https://blueoakcouncil.org/license/1.0.0.
     3  
     4  //go:build !systray
     5  
     6  package main
     7  
     8  import (
     9  	"fmt"
    10  	"os"
    11  )
    12  
    13  func main() {
    14  	// Wrap the actual main so defers run in it.
    15  	// Parse configuration.
    16  	cfg, err := configure()
    17  	if err != nil {
    18  		fmt.Fprintf(os.Stderr, "configuration error: %v", err)
    19  		os.Exit(1)
    20  	}
    21  	err = runCore(cfg)
    22  	if err != nil {
    23  		fmt.Fprintln(os.Stderr, err)
    24  		os.Exit(1)
    25  	}
    26  	os.Exit(0)
    27  }