(command.CommandList
  children: [
    (command.FuncDef
      name: _puppet_logdest
      body: 
        (command.BraceGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolUnary
                              op_id: BoolUnary_z
                              child: {($ VSub_DollarName '$cur')}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[25])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'syslog console /'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [28 44]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [25]
                        )
                      ]
                      spids: [25]
                    )
                  ]
                  spids: [16777215 22]
                )
              ]
              else_action: [
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[52])
                      op: Equal
                      rhs: 
                        {
                          (word_part.ArrayLiteralPart
                            words: [
                              {
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [
                                        (C {(compgen)} {(-W)} {(SQ <'syslog console'>)} {(--)} 
                                          {(DQ ($ VSub_DollarName '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [55 71]
                                )
                              }
                            ]
                          )
                        }
                      spids: [52]
                    )
                  ]
                  spids: [52]
                )
                (C {(_filedir)})
              ]
              spids: [49 79]
            )
          ]
          spids: [8]
        )
      spids: [4 7]
    )
    (command.FuncDef
      name: _puppet_digest
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[91])
                  op: Equal
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(SQ <'MD5 MD2 SHA1 SHA256'>)} {(--)} 
                                      {(DQ ($ VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [94 110]
                            )
                          }
                        ]
                      )
                    }
                  spids: [91]
                )
              ]
              spids: [91]
            )
          ]
          spids: [88]
        )
      spids: [84 87]
    )
    (command.FuncDef
      name: _puppet_certs
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:puppetca spids:[126])
                  op: Equal
                  rhs: {(DQ ('puppet cert'))}
                  spids: [126]
                )
              ]
              spids: [124]
            )
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (command.SimpleCommand
                  words: [{(type)} {(puppetca)}]
                  redirects: [(redir.Redir op:<Redir_AndGreat '&>'> fd:16777215 arg_word:{(/dev/null)})]
                  more_env: [
                    (env_pair
                      name: PATH
                      val: 
                        {($ VSub_DollarName '$PATH') (Lit_Other ':') (/sbin) (Lit_Other ':') 
                          (/usr/sbin) (Lit_Other ':') (/usr/local/sbin)
                        }
                      spids: [132]
                    )
                  ]
                )
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:puppetca spids:[152])
                      op: Equal
                      rhs: {(puppetca)}
                      spids: [152]
                    )
                  ]
                  spids: [152]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_Number '$1'))}
                              right: {(--all)}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:cert_list spids:[175])
                          op: Equal
                          rhs: 
                            {
                              (word_part.CommandSubPart
                                command_list: 
                                  (command.CommandList
                                    children: [
                                      (command.Pipeline
                                        children: [
                                          (C {($ VSub_DollarName '$puppetca')} {(--list)} {(--all)})
                                          (C {(sed)} {(-e)} 
                                            {(SQ <'s/^[+-]\\?\\s*\\(\\S\\+\\)\\s\\+.*$/\\1/'>)}
                                          )
                                        ]
                                        negated: F
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [176 194]
                              )
                            }
                          spids: [175]
                        )
                      ]
                      spids: [175]
                    )
                  ]
                  spids: [16777215 172]
                )
              ]
              else_action: [
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:cert_list spids:[200])
                      op: Equal
                      rhs: 
                        {
                          (word_part.CommandSubPart
                            command_list: 
                              (command.CommandList
                                children: [(C {($ VSub_DollarName '$puppetca')} {(--list)})]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [201 207]
                          )
                        }
                      spids: [200]
                    )
                  ]
                  spids: [200]
                )
              ]
              spids: [197 210]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[213])
                  op: PlusEqual
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(DQ ($ VSub_DollarName '$cert_list'))} {(--)} 
                                      {(DQ ($ VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [216 232]
                            )
                          }
                        ]
                      )
                    }
                  spids: [213]
                )
              ]
              spids: [213]
            )
          ]
          spids: [121]
        )
      spids: [117 120]
    )
    (command.FuncDef
      name: _puppet_types
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:puppet_types spids:[246])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (command.Pipeline
                                children: [
                                  (C {(puppet)} {(describe)} {(--list)})
                                  (C {(sed)} {(-e)} {(SQ <'s/^\\(\\S\\+\\).*$/\\1/'>)})
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [247 265]
                      )
                    }
                  spids: [246]
                )
              ]
              spids: [246]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[268])
                  op: PlusEqual
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(DQ ($ VSub_DollarName '$puppet_types'))} 
                                      {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [271 287]
                            )
                          }
                        ]
                      )
                    }
                  spids: [268]
                )
              ]
              spids: [268]
            )
          ]
          spids: [243]
        )
      spids: [239 242]
    )
    (command.FuncDef
      name: _puppet_references
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:puppetdoc spids:[303])
                  op: Equal
                  rhs: {(DQ ('puppet doc'))}
                  spids: [303]
                )
              ]
              spids: [301]
            )
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (command.SimpleCommand
                  words: [{(type)} {(puppetdoc)}]
                  redirects: [(redir.Redir op:<Redir_AndGreat '&>'> fd:16777215 arg_word:{(/dev/null)})]
                  more_env: [
                    (env_pair
                      name: PATH
                      val: 
                        {($ VSub_DollarName '$PATH') (Lit_Other ':') (/sbin) (Lit_Other ':') 
                          (/usr/sbin) (Lit_Other ':') (/usr/local/sbin)
                        }
                      spids: [309]
                    )
                  ]
                )
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:puppetdoc spids:[329])
                      op: Equal
                      rhs: {(puppetdoc)}
                      spids: [329]
                    )
                  ]
                  spids: [329]
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:puppet_doc_list spids:[334])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (command.Pipeline
                                children: [
                                  (C {($ VSub_DollarName '$puppetdoc')} {(--list)})
                                  (C {(sed)} {(-e)} {(SQ <'s/^\\(\\S\\+\\).*$/\\1/'>)})
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [335 351]
                      )
                    }
                  spids: [334]
                )
              ]
              spids: [334]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[354])
                  op: PlusEqual
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(DQ ($ VSub_DollarName '$puppet_doc_list'))} 
                                      {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [357 373]
                            )
                          }
                        ]
                      )
                    }
                  spids: [354]
                )
              ]
              spids: [354]
            )
          ]
          spids: [298]
        )
      spids: [294 297]
    )
    (command.FuncDef
      name: _puppet_subcmd_opts
      body: 
        (command.BraceGroup
          children: [
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.LogicalOr
                      left: (bool_expr.BoolUnary op_id:BoolUnary_z child:{($ VSub_DollarName '$cur')})
                      right: 
                        (bool_expr.BoolBinary
                          op_id: BoolBinary_GlobDEqual
                          left: {($ VSub_DollarName '$cur')}
                          right: {(-) (Lit_Other '*')}
                        )
                    )
                )
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[412])
                      op: PlusEqual
                      rhs: 
                        {
                          (word_part.ArrayLiteralPart
                            words: [
                              {
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [
                                        (C {(compgen)} {(-W)} {(SQ <'$( _parse_usage "$1" "help $2" )'>)} 
                                          {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [415 433]
                                )
                              }
                            ]
                          )
                        }
                      spids: [412]
                    )
                  ]
                  spids: [412]
                )
              ]
            )
          ]
          spids: [384]
        )
      spids: [380 383]
    )
    (command.AndOr
      ops: [Op_DAmp]
      children: [
        (command.FuncDef
          name: _puppet
          body: 
            (command.BraceGroup
              children: [
                (command.Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:cur spids:[449])
                      op: Equal
                      spids: [449]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:prev spids:[451])
                      op: Equal
                      spids: [451]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:words spids:[453])
                      op: Equal
                      spids: [453]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:cword spids:[455])
                      op: Equal
                      spids: [455]
                    )
                  ]
                  spids: [447]
                )
                (command.AndOr
                  ops: [Op_DPipe]
                  children: [
                    (C {(_init_completion)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (command.Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:xspec spids:[468])
                      op: Equal
                      spids: [468]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:helpopts spids:[470])
                      op: Equal
                      spids: [470]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:subcommand spids:[472])
                      op: Equal
                      spids: [472]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:action spids:[474])
                      op: Equal
                      spids: [474]
                    )
                  ]
                  spids: [466]
                )
                (command.Case
                  to_match: {($ VSub_DollarName '$prev')}
                  arms: [
                    (case_arm
                      pat_list: [{(-h)} {(--help)} {(-V)} {(--version)}]
                      action: [(command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                      spids: [485 492 500 16777215]
                    )
                  ]
                  spids: [478 482 503]
                )
                (command.Case
                  to_match: 
                    {
                      (word_part.BracedVarSub
                        token: <VSub_Name words>
                        bracket_op: 
                          (bracket_op.ArrayIndex
                            expr: (arith_expr.ArithWord w:{(Lit_Digits 0)})
                          )
                        spids: [509 514]
                      )
                    }
                  arms: [
                    (case_arm
                      pat_list: [{(puppetmasterd)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[523])
                              op: Equal
                              rhs: {(master)}
                              spids: [523]
                            )
                          ]
                          spids: [523]
                        )
                      ]
                      spids: [519 520 527 16777215]
                    )
                    (case_arm
                      pat_list: [{(puppetd)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[534])
                              op: Equal
                              rhs: {(agent)}
                              spids: [534]
                            )
                          ]
                          spids: [534]
                        )
                      ]
                      spids: [530 531 538 16777215]
                    )
                    (case_arm
                      pat_list: [{(puppetca)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[545])
                              op: Equal
                              rhs: {(cert)}
                              spids: [545]
                            )
                          ]
                          spids: [545]
                        )
                      ]
                      spids: [541 542 549 16777215]
                    )
                    (case_arm
                      pat_list: [{(ralsh)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[556])
                              op: Equal
                              rhs: {(resource)}
                              spids: [556]
                            )
                          ]
                          spids: [556]
                        )
                      ]
                      spids: [552 553 560 16777215]
                    )
                    (case_arm
                      pat_list: [{(puppetrun)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[567])
                              op: Equal
                              rhs: {(kick)}
                              spids: [567]
                            )
                          ]
                          spids: [567]
                        )
                      ]
                      spids: [563 564 571 16777215]
                    )
                    (case_arm
                      pat_list: [{(puppetqd)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[578])
                              op: Equal
                              rhs: {(queue)}
                              spids: [578]
                            )
                          ]
                          spids: [578]
                        )
                      ]
                      spids: [574 575 582 16777215]
                    )
                    (case_arm
                      pat_list: [{(filebucket)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[589])
                              op: Equal
                              rhs: {(filebucket)}
                              spids: [589]
                            )
                          ]
                          spids: [589]
                        )
                      ]
                      spids: [585 586 593 16777215]
                    )
                    (case_arm
                      pat_list: [{(puppetdoc)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[600])
                              op: Equal
                              rhs: {(doc)}
                              spids: [600]
                            )
                          ]
                          spids: [600]
                        )
                      ]
                      spids: [596 597 604 16777215]
                    )
                    (case_arm
                      pat_list: [{(pi)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:subcommand spids:[611])
                              op: Equal
                              rhs: {(describe)}
                              spids: [611]
                            )
                          ]
                          spids: [611]
                        )
                      ]
                      spids: [607 608 615 16777215]
                    )
                    (case_arm
                      pat_list: [{(puppet)}]
                      action: [
                        (command.Case
                          to_match: 
                            {
                              (word_part.BracedVarSub
                                token: <VSub_Name words>
                                bracket_op: 
                                  (bracket_op.ArrayIndex
                                    expr: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                                  )
                                spids: [624 629]
                              )
                            }
                          arms: [
                            (case_arm
                              pat_list: [
                                {(agent)}
                                {(apply)}
                                {(cert)}
                                {(describe)}
                                {(doc)}
                                {(filebucket)}
                                {(kick)}
                                {(master)}
                                {(parser)}
                                {(queue)}
                                {(resource)}
                              ]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:subcommand spids:[658])
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.BracedVarSub
                                            token: <VSub_Name words>
                                            bracket_op: 
                                              (bracket_op.ArrayIndex
                                                expr: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                                              )
                                            spids: [659 664]
                                          )
                                        }
                                      spids: [658]
                                    )
                                  ]
                                  spids: [658]
                                )
                              ]
                              spids: [634 655 667 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*') (.pp)} {(Lit_Other '*') (.rb)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:subcommand spids:[678])
                                      op: Equal
                                      rhs: {(apply)}
                                      spids: [678]
                                    )
                                  ]
                                  spids: [678]
                                )
                              ]
                              spids: [670 675 682 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[689])
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} 
                                                          {
                                                            (SQ <'agent apply cert describe doc\n'> 
                                                              <
'                      filebucket kick master parser queue resource'
                                                              >
                                                            )
                                                          } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [692 709]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [689]
                                    )
                                  ]
                                  spids: [689]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [685 686 719 16777215]
                            )
                          ]
                          spids: [622 631 722]
                        )
                      ]
                      spids: [618 619 16777215 725]
                    )
                  ]
                  spids: [507 516 725]
                )
                (command.Case
                  to_match: {($ VSub_DollarName '$subcommand')}
                  arms: [
                    (case_arm
                      pat_list: [{(agent)}]
                      action: [
                        (command.Case
                          to_match: {($ VSub_DollarName '$prev')}
                          arms: [
                            (case_arm
                              pat_list: [{(--certname)}]
                              action: [
                                (C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [747 748 763 16777215]
                            )
                            (case_arm
                              pat_list: [{(--digest)}]
                              action: [
                                (C {(_puppet_digest)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [766 767 778 16777215]
                            )
                            (case_arm
                              pat_list: [{(--fqdn)}]
                              action: [
                                (C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [781 782 797 16777215]
                            )
                            (case_arm
                              pat_list: [{(-l)} {(--logdest)}]
                              action: [
                                (C {(_puppet_logdest)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [800 803 814 16777215]
                            )
                            (case_arm
                              pat_list: [{(--masterport)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[821])
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} {(SQ <8140>)} {(--)} 
                                                          {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [824 840]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [821]
                                    )
                                  ]
                                  spids: [821]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [817 818 850 16777215]
                            )
                            (case_arm
                              pat_list: [{(-w)} {(--waitforcert)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[859])
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} {(SQ <'0 15 30 60 120'>)} 
                                                          {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [862 878]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [859]
                                    )
                                  ]
                                  spids: [859]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [853 856 888 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                                  {($ VSub_DollarName '$subcommand')}
                                )
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[908])
                                      op: PlusEqual
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} {(SQ <--no-daemonize>)} 
                                                          {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [911 927]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [908]
                                    )
                                  ]
                                  spids: [908]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [891 892 16777215 937]
                            )
                          ]
                          spids: [740 744 937]
                        )
                      ]
                      spids: [736 737 940 16777215]
                    )
                    (case_arm
                      pat_list: [{(apply)}]
                      action: [
                        (command.Case
                          to_match: {($ VSub_DollarName '$prev')}
                          arms: [
                            (case_arm
                              pat_list: [{(--catalog)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[958])
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} {(SQ <->)} {(--)} 
                                                          {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [961 977]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [958]
                                    )
                                  ]
                                  spids: [958]
                                )
                                (C {(_filedir)} {(json)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [954 955 992 16777215]
                            )
                            (case_arm
                              pat_list: [{(--execute)}]
                              action: [
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [995 996 1004 16777215]
                            )
                            (case_arm
                              pat_list: [{(-l)} {(--logdest)}]
                              action: [
                                (C {(_puppet_logdest)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1007 1010 1021 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: {(DQ ($ VSub_DollarName '$cur'))}
                                                  right: {(-) (Lit_Other '*')}
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                                          {($ VSub_DollarName '$subcommand')}
                                        )
                                      ]
                                      spids: [16777215 1044]
                                    )
                                  ]
                                  else_action: [(C {(_filedir)})]
                                  spids: [1056 1062]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1024 1025 16777215 1070]
                            )
                          ]
                          spids: [947 951 1070]
                        )
                      ]
                      spids: [943 944 1073 16777215]
                    )
                    (case_arm
                      pat_list: [{(cert)}]
                      action: [
                        (command.Case
                          to_match: {($ VSub_DollarName '$prev')}
                          arms: [
                            (case_arm
                              pat_list: [{(--digest)}]
                              action: [
                                (C {(_puppet_digest)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1087 1088 1099 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:action spids:[1106])
                                      op: Equal
                                      rhs: {($ VSub_DollarName '$prev')}
                                      spids: [1106]
                                    )
                                  ]
                                  spids: [1106]
                                )
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1110])
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} 
                                                          {
                                                            (SQ 
                                                              <
'--digest --debug --help --verbose --version'
                                                              >
                                                            )
                                                          } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [1113 1131]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [1110]
                                    )
                                  ]
                                  spids: [1110]
                                )
                                (command.Case
                                  to_match: {($ VSub_DollarName '$action')}
                                  arms: [
                                    (case_arm
                                      pat_list: [
                                        {(fingerprint)}
                                        {(list)}
                                        {(verify)}
                                        {(--fingerprint)}
                                        {(--list)}
                                        {(--verify)}
                                      ]
                                      action: [
                                        (command.Assignment
                                          keyword: Assign_None
                                          pairs: [
                                            (assign_pair
                                              lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1157])
                                              op: PlusEqual
                                              rhs: 
                                                {
                                                  (word_part.ArrayLiteralPart
                                                    words: [
                                                      {
                                                        (word_part.CommandSubPart
                                                          command_list: 
                                                            (command.CommandList
                                                              children: [
                                                                (C {(compgen)} {(-W)} {(SQ <--all>)} 
                                                                  {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                                )
                                                              ]
                                                            )
                                                          left_token: <Left_CommandSub '$('>
                                                          spids: [1160 1176]
                                                        )
                                                      }
                                                    ]
                                                  )
                                                }
                                              spids: [1157]
                                            )
                                          ]
                                          spids: [1157]
                                        )
                                        (C {(_puppet_certs)} {(--all)})
                                        (command.ControlFlow
                                          token: <ControlFlow_Return return>
                                          arg_word: {(0)}
                                        )
                                      ]
                                      spids: [1143 1154 1191 16777215]
                                    )
                                    (case_arm
                                      pat_list: [{(generate)} {(--generate)}]
                                      action: [
                                        (C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})
                                        (command.ControlFlow
                                          token: <ControlFlow_Return return>
                                          arg_word: {(0)}
                                        )
                                      ]
                                      spids: [1194 1197 1212 16777215]
                                    )
                                    (case_arm
                                      pat_list: [
                                        {(clean)}
                                        {(print)}
                                        {(revoke)}
                                        {(--clean)}
                                        {(--print)}
                                        {(--revoke)}
                                      ]
                                      action: [
                                        (C {(_puppet_certs)} {(--all)})
                                        (command.ControlFlow
                                          token: <ControlFlow_Return return>
                                          arg_word: {(0)}
                                        )
                                      ]
                                      spids: [1215 1226 1239 16777215]
                                    )
                                    (case_arm
                                      pat_list: [{(sign)} {(--sign)}]
                                      action: [
                                        (command.Assignment
                                          keyword: Assign_None
                                          pairs: [
                                            (assign_pair
                                              lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1248])
                                              op: PlusEqual
                                              rhs: 
                                                {
                                                  (word_part.ArrayLiteralPart
                                                    words: [
                                                      {
                                                        (word_part.CommandSubPart
                                                          command_list: 
                                                            (command.CommandList
                                                              children: [
                                                                (C {(compgen)} {(-W)} {(SQ <--all>)} 
                                                                  {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                                )
                                                              ]
                                                            )
                                                          left_token: <Left_CommandSub '$('>
                                                          spids: [1251 1267]
                                                        )
                                                      }
                                                    ]
                                                  )
                                                }
                                              spids: [1248]
                                            )
                                          ]
                                          spids: [1248]
                                        )
                                        (C {(_puppet_certs)})
                                        (command.ControlFlow
                                          token: <ControlFlow_Return return>
                                          arg_word: {(0)}
                                        )
                                      ]
                                      spids: [1242 1245 1280 16777215]
                                    )
                                    (case_arm
                                      pat_list: [{(Lit_Other '*')}]
                                      action: [
                                        (command.Assignment
                                          keyword: Assign_None
                                          pairs: [
                                            (assign_pair
                                              lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1287])
                                              op: PlusEqual
                                              rhs: 
                                                {
                                                  (word_part.ArrayLiteralPart
                                                    words: [
                                                      {
                                                        (word_part.CommandSubPart
                                                          command_list: 
                                                            (command.CommandList
                                                              children: [
                                                                (C {(compgen)} {(-W)} 
                                                                  {
                                                                    (SQ 
                                                                      <
'clean fingerprint generate\n'
                                                                      > <'                                list print revoke sign verify reinventory'>
                                                                    )
                                                                  } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                                )
                                                              ]
                                                            )
                                                          left_token: <Left_CommandSub '$('>
                                                          spids: [1290 1307]
                                                        )
                                                      }
                                                    ]
                                                  )
                                                }
                                              spids: [1287]
                                            )
                                          ]
                                          spids: [1287]
                                        )
                                        (command.ControlFlow
                                          token: <ControlFlow_Return return>
                                          arg_word: {(0)}
                                        )
                                      ]
                                      spids: [1283 1284 16777215 1317]
                                    )
                                  ]
                                  spids: [1136 1140 1317]
                                )
                              ]
                              spids: [1102 1103 16777215 1320]
                            )
                          ]
                          spids: [1080 1084 1320]
                        )
                      ]
                      spids: [1076 1077 1323 16777215]
                    )
                    (case_arm
                      pat_list: [{(describe)}]
                      action: [
                        (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                          {($ VSub_DollarName '$subcommand')}
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.BoolBinary
                                          op_id: BoolBinary_GlobNEqual
                                          left: {(DQ ($ VSub_DollarName '$cur'))}
                                          right: {(-) (Lit_Other '*')}
                                        )
                                    )
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [(C {(_puppet_types)})]
                              spids: [16777215 1355]
                            )
                          ]
                          spids: [16777215 1361]
                        )
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [1326 1327 1369 16777215]
                    )
                    (case_arm
                      pat_list: [{(doc)}]
                      action: [
                        (command.Case
                          to_match: {($ VSub_DollarName '$prev')}
                          arms: [
                            (case_arm
                              pat_list: [{(-o)} {(--outputdir)}]
                              action: [
                                (C {(_filedir)} {(-d)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1383 1386 1399 16777215]
                            )
                            (case_arm
                              pat_list: [{(-m)} {(--mode)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1408])
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} 
                                                          {(SQ <'text trac pdf rdoc'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [1411 1427]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [1408]
                                    )
                                  ]
                                  spids: [1408]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1402 1405 1437 16777215]
                            )
                            (case_arm
                              pat_list: [{(-r)} {(--reference)}]
                              action: [
                                (C {(_puppet_references)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1440 1443 1454 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: {(DQ ($ VSub_DollarName '$cur'))}
                                                  right: {(-) (Lit_Other '*')}
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                                          {($ VSub_DollarName '$subcommand')}
                                        )
                                      ]
                                      spids: [16777215 1477]
                                    )
                                  ]
                                  else_action: [(C {(_filedir)})]
                                  spids: [1489 1495]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1457 1458 16777215 1503]
                            )
                          ]
                          spids: [1376 1380 1503]
                        )
                      ]
                      spids: [1372 1373 1506 16777215]
                    )
                    (case_arm
                      pat_list: [{(filebucket)}]
                      action: [
                        (command.Case
                          to_match: {($ VSub_DollarName '$prev')}
                          arms: [
                            (case_arm
                              pat_list: [{(-s)} {(--server)}]
                              action: [
                                (C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1520 1523 1538 16777215]
                            )
                            (case_arm
                              pat_list: [{(-b)} {(--bucket)}]
                              action: [
                                (C {(_filedir)} {(-d)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1541 1544 1557 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: {(DQ ($ VSub_DollarName '$cur'))}
                                                  right: {(-) (Lit_Other '*')}
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                                          {($ VSub_DollarName '$subcommand')}
                                        )
                                      ]
                                      spids: [16777215 1580]
                                    )
                                  ]
                                  else_action: [
                                    (command.Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1595])
                                          op: Equal
                                          rhs: 
                                            {
                                              (word_part.ArrayLiteralPart
                                                words: [
                                                  {
                                                    (word_part.CommandSubPart
                                                      command_list: 
                                                        (command.CommandList
                                                          children: [
                                                            (C {(compgen)} {(-W)} 
                                                              {(SQ <'backup get restore'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                            )
                                                          ]
                                                        )
                                                      left_token: <Left_CommandSub '$('>
                                                      spids: [1598 1616]
                                                    )
                                                  }
                                                ]
                                              )
                                            }
                                          spids: [1595]
                                        )
                                      ]
                                      spids: [1595]
                                    )
                                    (C {(_filedir)})
                                  ]
                                  spids: [1592 1624]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1560 1561 16777215 1632]
                            )
                          ]
                          spids: [1513 1517 1632]
                        )
                      ]
                      spids: [1509 1510 1635 16777215]
                    )
                    (case_arm
                      pat_list: [{(kick)}]
                      action: [
                        (command.Case
                          to_match: {($ VSub_DollarName '$prev')}
                          arms: [
                            (case_arm
                              pat_list: [{(-c)} {(--class)}]
                              action: [
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1649 1652 1660 16777215]
                            )
                            (case_arm
                              pat_list: [{(--host)}]
                              action: [
                                (C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1663 1664 1679 16777215]
                            )
                            (case_arm
                              pat_list: [{(-t)} {(--tag)}]
                              action: [
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1682 1685 1693 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: {(DQ ($ VSub_DollarName '$cur'))}
                                                  right: {(-) (Lit_Other '*')}
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                                          {($ VSub_DollarName '$subcommand')}
                                        )
                                      ]
                                      spids: [16777215 1716]
                                    )
                                  ]
                                  else_action: [
                                    (C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})
                                  ]
                                  spids: [1728 1738]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1696 1697 16777215 1746]
                            )
                          ]
                          spids: [1642 1646 1746]
                        )
                      ]
                      spids: [1638 1639 1749 16777215]
                    )
                    (case_arm
                      pat_list: [{(master)}]
                      action: [
                        (command.Case
                          to_match: {($ VSub_DollarName '$prev')}
                          arms: [
                            (case_arm
                              pat_list: [{(-l)} {(--logdest)}]
                              action: [
                                (C {(_puppet_logdest)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1763 1766 1777 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                                  {($ VSub_DollarName '$subcommand')}
                                )
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1797])
                                      op: PlusEqual
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} {(SQ <--no-daemonize>)} 
                                                          {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [1800 1816]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [1797]
                                    )
                                  ]
                                  spids: [1797]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1780 1781 16777215 1826]
                            )
                          ]
                          spids: [1756 1760 1826]
                        )
                      ]
                      spids: [1752 1753 1829 16777215]
                    )
                    (case_arm
                      pat_list: [{(parser)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:action spids:[1836])
                              op: Equal
                              rhs: {($ VSub_DollarName '$prev')}
                              spids: [1836]
                            )
                          ]
                          spids: [1836]
                        )
                        (command.Case
                          to_match: {($ VSub_DollarName '$action')}
                          arms: [
                            (case_arm
                              pat_list: [{(validate)}]
                              action: [
                                (C {(_filedir)} {(pp)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1847 1848 1861 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1868])
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} {(SQ <validate>)} {(--)} 
                                                          {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [1871 1887]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [1868]
                                    )
                                  ]
                                  spids: [1868]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1864 1865 16777215 1897]
                            )
                          ]
                          spids: [1840 1844 1897]
                        )
                      ]
                      spids: [1832 1833 1900 16777215]
                    )
                    (case_arm
                      pat_list: [{(queue)}]
                      action: [
                        (command.Case
                          to_match: {($ VSub_DollarName '$prev')}
                          arms: [
                            (case_arm
                              pat_list: [{(-l)} {(--logdest)}]
                              action: [
                                (C {(_puppet_logdest)})
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1914 1917 1928 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: {(DQ ($ VSub_DollarName '$cur'))}
                                                  right: {(-) (Lit_Other '*')}
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                                          {($ VSub_DollarName '$subcommand')}
                                        )
                                      ]
                                      spids: [16777215 1951]
                                    )
                                  ]
                                  else_action: [(C {(_filedir)})]
                                  spids: [1963 1969]
                                )
                                (command.ControlFlow
                                  token: <ControlFlow_Return return>
                                  arg_word: {(0)}
                                )
                              ]
                              spids: [1931 1932 16777215 1977]
                            )
                          ]
                          spids: [1907 1911 1977]
                        )
                      ]
                      spids: [1903 1904 1980 16777215]
                    )
                    (case_arm
                      pat_list: [{(resource)} {(Lit_Other '*')}]
                      action: [
                        (C {(_puppet_subcmd_opts)} {(DQ ($ VSub_Number '$1'))} 
                          {($ VSub_DollarName '$subcommand')}
                        )
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [1983 1986 2003 16777215]
                    )
                  ]
                  spids: [729 733 2006]
                )
              ]
              spids: [444]
            )
          spids: [440 443]
        )
        (C {(complete)} {(-F)} {(_puppet)} {(puppetmasterd)} {(puppetd)} {(puppetca)} {(ralsh)} {(puppetrun)} 
          {(puppetqd)} {(filebucket)} {(puppetdoc)} {(puppet)}
        )
      ]
    )
  ]
)