Skip to content

Commit

Permalink
cfg.Pid.*
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Aug 23, 2017
1 parent cd6dfbd commit e50fea9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config.go
Expand Up @@ -13,10 +13,10 @@ type Config struct {
StdErr Log `yaml:",omitempty" json:",omitempty"`
StdOut Log `yaml:",omitempty" json:",omitempty"`
Logger string `yaml:",omitempty" json:",omitempty"`
Require []string `yaml:",omitempty"`
User string `yaml:",omitempty" json:",omitempty"`
Wait int `yaml:",omitempty"`
Pid `yaml:",omitempty" json:",omitempty"`
Require []string `yaml:",omitempty"`
User string `yaml:",omitempty" json:",omitempty"`
Wait int `yaml:",omitempty"`
command []string
ctl string
log bool
Expand Down
6 changes: 3 additions & 3 deletions parser.go
Expand Up @@ -220,7 +220,7 @@ func ParseArgs(p Parser, fs *flag.FlagSet) (cfg *Config, err error) {

// if -f
if flags.FollowPid != "" {
cfg.Follow = flags.FollowPid
cfg.Pid.Follow = flags.FollowPid
}

// if -l
Expand All @@ -235,12 +235,12 @@ func ParseArgs(p Parser, fs *flag.FlagSet) (cfg *Config, err error) {

// if -P
if flags.ParentPid != "" {
cfg.Parent = flags.ParentPid
cfg.Pid.Parent = flags.ParentPid
}

// if -p
if flags.ChildPid != "" {
cfg.Child = flags.ChildPid
cfg.Pid.Child = flags.ChildPid
}

// if -s
Expand Down

0 comments on commit e50fea9

Please sign in to comment.