Coder Social home page Coder Social logo

Comments (6)

jpillora avatar jpillora commented on July 30, 2024

from webproc.

muratbulbul avatar muratbulbul commented on July 30, 2024

As I see, there is a issue with these lines at config.go file. arglist and commalist types can not be accepted by compiler.

Any idea? Did I missed some go dev tools?

//Config is shared for both toml unmarshalling and opts CLI generation
type Config struct {
Host string help:"listening interface"
Port int help:"listening port" env:"PORT"
User string help:"basic auth username" env:"HTTP_USER"
Pass string help:"basic auth password" env:"HTTP_PASS"
AllowedIPs []string opts:"-"
ProgramArgs []string type:"arglist" min:"1" name:"args" help:"args can be either a command with arguments or a webproc file"
Log Log opts:"-"
OnExit OnExit help:"process exit action" default:"ignore"
ConfigurationFiles []string name:"config" type:"commalist" help:"comma-separated list of configuration files"
RestartTimeout Duration opts:"-"
MaxLines int help:"maximum number of log lines to show in webui" default:"5000"
}

After installation:

$GOPATH/bin/webproc

Usage: webproc [options]

Options:
--host listening interface
--port listening port
--user basic auth username
--pass basic auth password

Version:
0.0.0-src

Error:
field 'ProgramArgs' invalid opts mode 'arglist'

from webproc.

jpillora avatar jpillora commented on July 30, 2024

from webproc.

muratbulbul avatar muratbulbul commented on July 30, 2024

Thanx you for your quick reply.

from webproc.

muratbulbul avatar muratbulbul commented on July 30, 2024

Did you push new version?

from webproc.

jpillora avatar jpillora commented on July 30, 2024

yep 0e15e52

from webproc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.