(CommandList
  children: [
    (C {(set)} {(-o)} {(errexit)})
    (C {(set)} {(-o)} {(nounset)})
    (C {(set)} {(-o)} {(pipefail)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:KUBE_ROOT)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [(C {(dirname)} {(DQ (${ VSub_Name BASH_SOURCE))})]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [67 75]
              ) (/..)
            }
          spids: [66]
        )
      ]
      spids: [66]
    )
    (C {(source)} {(DQ (${ VSub_Name KUBE_ROOT) (/hack/lib/init.sh))})
    (C {(source)} {(DQ (${ VSub_Name KUBE_ROOT) (/hack/lib/util.sh))})
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:SILENT) op:Equal rhs:{(true)} spids:[97])]
      spids: [97]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:ALL) op:Equal rhs:{(false)} spids:[100])]
      spids: [100]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:V) op:Equal rhs:{(DQ )} spids:[103])]
      spids: [103]
    )
    (While
      cond: [(Sentence child:(C {(getopts)} {(DQ (':va'))} {(opt)}) terminator:<Op_Semi ';'>)]
      body: 
        (DoGroup
          children: [
            (Case
              to_match: {($ VSub_Name '$opt')}
              arms: [
                (case_arm
                  pat_list: [{(a)}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [(assign_pair lhs:(LhsName name:ALL) op:Equal rhs:{(true)} spids:[133])]
                      spids: [133]
                    )
                  ]
                  spids: [129 130 137 16777215]
                )
                (case_arm
                  pat_list: [{(v)}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:SILENT)
                          op: Equal
                          rhs: {(false)}
                          spids: [144]
                        )
                      ]
                      spids: [144]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [(assign_pair lhs:(LhsName name:V) op:Equal rhs:{(DQ (-v))} spids:[148])]
                      spids: [148]
                    )
                  ]
                  spids: [140 141 154 16777215]
                )
                (case_arm
                  pat_list: [{(EscapedLiteralPart token:<Lit_EscapedChar '\\?'>)}]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('Invalid flag: -') ($ VSub_Name '$OPTARG'))}]
                      redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[168])]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [157 158 177 16777215]
                )
              ]
              spids: [122 126 180]
            )
          ]
          spids: [119 182]
        )
    )
    (C {(trap)} {(SQ <'exit 1'>)} {(SIGINT)})
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(C {($ VSub_Name '$SILENT')}) terminator:<Op_Semi ';'>)]
          action: [
            (C {(echo)} {(DQ ('Running in silent mode, run with -v if you want to see script logs.'))})
          ]
          spids: [16777215 200]
        )
      ]
      spids: [16777215 209]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (Pipeline children:[(C {($ VSub_Name '$ALL')})] negated:True)
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} 
              {(DQ ('Running in short-circuit mode; run with -a to force all scripts to run.'))}
            )
          ]
          spids: [16777215 220]
        )
      ]
      spids: [16777215 229]
    )
    (C {(DQ (${ VSub_Name KUBE_ROOT) (/hack/godep-restore.sh))} {(${ VSub_Name V)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:BASH_TARGETS)
          op: Equal
          rhs: 
            {
              (DQ ('\n') ('\tupdate-generated-protobuf\n') ('\tupdate-codegen\n') 
                ('\tupdate-generated-docs\n') ('\tupdate-generated-swagger-docs\n') ('\tupdate-swagger-spec\n') ('\tupdate-openapi-spec\n') 
                ('\tupdate-api-reference-docs\n') ('\tupdate-federation-openapi-spec\n') ('\tupdate-federation-swagger-spec\n') 
                ('\tupdate-federation-generated-swagger-docs\n') ('\tupdate-federation-api-reference-docs\n') ('\tupdate-staging-godeps\n') ('\tupdate-bazel')
              )
            }
          spids: [244]
        )
      ]
      spids: [244]
    )
    (ForEach
      iter_name: t
      iter_words: [{($ VSub_Name '$BASH_TARGETS')}]
      do_arg_iter: False
      body: 
        (DoGroup
          children: [
            (C {(echo)} {(-e)} 
              {
                (DQ (${ VSub_Name color_yellow) ('Running ') ($ VSub_Name '$t') 
                  (${ VSub_Name color_norm)
                )
              }
            )
            (If
              arms: [
                (if_arm
                  cond: [(Sentence child:(C {($ VSub_Name '$SILENT')}) terminator:<Op_Semi ';'>)]
                  action: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (Pipeline
                                  children: [
                                    (SimpleCommand
                                      words: [
                                        {(bash)}
                                        {
                                          (DQ ($ VSub_Name '$KUBE_ROOT') (/hack/) ($ VSub_Name '$t') 
                                            (.sh)
                                          )
                                        }
                                      ]
                                      redirects: [
                                        (Redir
                                          op_id: Redir_Great
                                          fd: 1
                                          arg_word: {(/dev/null)}
                                          spids: [313]
                                        )
                                      ]
                                    )
                                  ]
                                  negated: True
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (C {(echo)} {(-e)} 
                              {
                                (DQ (${ VSub_Name color_red) ('Running ') ($ VSub_Name '$t') (' FAILED') 
                                  (${ VSub_Name color_norm)
                                )
                              }
                            )
                            (If
                              arms: [
                                (if_arm
                                  cond: [
                                    (Sentence
                                      child: 
                                        (Pipeline
                                          children: [(C {($ VSub_Name '$ALL')})]
                                          negated: True
                                        )
                                      terminator: <Op_Semi ';'>
                                    )
                                  ]
                                  action: [(C {(exit)} {(1)})]
                                  spids: [16777215 345]
                                )
                              ]
                              spids: [16777215 353]
                            )
                          ]
                          spids: [16777215 318]
                        )
                      ]
                      spids: [16777215 356]
                    )
                  ]
                  spids: [16777215 297]
                )
              ]
              else_action: [
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (Pipeline
                              children: [
                                (C {(bash)} 
                                  {(DQ ($ VSub_Name '$KUBE_ROOT') (/hack/) ($ VSub_Name '$t') (.sh))}
                                )
                              ]
                              negated: True
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (C {(echo)} {(-e)} 
                          {
                            (DQ (${ VSub_Name color_red) ('Running ') ($ VSub_Name '$t') (' FAILED') 
                              (${ VSub_Name color_norm)
                            )
                          }
                        )
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (Pipeline
                                      children: [(C {($ VSub_Name '$ALL')})]
                                      negated: True
                                    )
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [(C {(exit)} {(1)})]
                              spids: [16777215 403]
                            )
                          ]
                          spids: [16777215 411]
                        )
                      ]
                      spids: [16777215 376]
                    )
                  ]
                  spids: [16777215 414]
                )
              ]
              spids: [359 417]
            )
          ]
          spids: [272 419]
        )
      spids: [268 270]
    )
    (C {(echo)} {(-e)} 
      {
        (DQ (${ VSub_Name color_green) ('Update scripts completed successfully') 
          (${ VSub_Name color_norm)
        )
      }
    )
  ]
)