vonc + flags   67

jpillora/opts: A Go (golang) package for building frictionless command-line interfaces
A Go (golang) package for building frictionless command-line interfaces - jpillora/opts
go  golang  flags  2019  struct  nested  json  config  important 
may 2019 by vonc
Eric Greer Weblog
Flaggy: A better flags package for go #reddit
go  golang  flags  package  library  alternative  article  important  reddit 
july 2018 by vonc
go-arg - Struct-based argument parsing in Go
go  golang  struct  arg  arguments  parse  parsing  flags 
november 2015 by vonc
GitHub · Where software is built
golibs - golang functions (to be included in other projects)
go  golang  codecoverage  ci  ContinuousIntegration  label  examples  projects  path  gopath  include  regexp  ansi  colors  cli  cmd  flags  labels 
september 2015 by vonc
kingpin - A Go (golang) command line and flag parser
commandline  flags  golang  cli  parser  parse  important  completion 
june 2014 by vonc
Cobra is a commander providing a simple interface to create powerful modern CLI interfaces similar to git & go tools. In addition to providing an iterface, Cobra simultaneously provides a controller to organize your application code. Inspired by go, go-Commander, gh and subcommand, Cobra improves on these by providing fully posix compliant flags (including short & long versions), nesting commands, and the ability to define your own help and usage for any or all commands. Cobra has an exceptionally clean interface and simple design without needless constructors or initialization methods.
go  golang  command  flags  options  cli  commandline  interface 
november 2013 by vonc
LiPyrary - Python for books: How to compile Python on Ubuntu 11.04
The solution to the issue is rather simple.

$ make distclean
$ export LDFLAGS="-L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)"
$ ./configure
$ make
$ make install
$ unset LDFLAGS

This adds an additional library search path (-L/usr/lib/x86_64-linux-gnu on my box). Now setup.py knows about the multiarch lib directory and builds zlib and all the other missing modules just fine.

Actually my build system a bit more paranoid. It also adds /lib/x86_64-linux-gnu as library search path and /usr/include/x86_64-linux-gnu as header include path for C and C++.

$ export arch=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
$ export LDFLAGS="-L/usr/lib/$arch -L/lib/$arch"
$ export CFLAGS="-I/usr/include/$arch"
$ export CPPFLAGS="-I/usr/include/$arch"
$ ./configure
$ make
$ make install
library  path  flags  options  compilation  multiarch  gcc 
february 2013 by vonc

related tags

1.10  12factor  alternative  ansi  arg  args  argument  arguments  article  BestPractices  binary  bot  branch  build  chrome  ci  cli  cmd  cobra  code  codecoverage  codegangsta  collection  colors  command  commandline  compilation  compiler  completion  complexity  compression  config  configuration  context  ContinuousIntegration  cppflags  creation  criticisms  crosscompilation  custom  debug  declaration  delve  embed  embedded  enum  env  environment  ethernet  ev  example  examples  execution  exit  feature  flaeg  flags  flaws  gcc  generate  generator  get  Git  go  golang  golint  gopath  headless  important  include  interface  json  june  key  label  labels  ldflag  ldflags  libraries  library  linux  list  load  magic  message  multiarch  nested  numbering  optimization  option  options  opts  package  parameters  parse  parser  parsing  path  performance  perl  projects  reddit  regexp  remote  safe  scala  schema  security  shell  simple  size  small  ssh  struct  structure  subcommand  support  techniques  template  test  text  Tips  traefik  Tutorial  twitter  type  ubuntu  unittesting  unix  upx  user  variable  version  viper  warning  work 

Copy this bookmark: