(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:currentVersion)
          op: assign_op.Equal
          rhs: {(DQ <1.11.1>)}
          spids: [7]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:configuredClient)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [12]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:configuredPython)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [16]
        )
      ]
    )
    (C {<source>} {(word_part.TildeSub token:<Id.Lit_TildeLike '~'>) <'/.bash_profile'>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:apiKey)
          op: assign_op.Equal
          rhs: {($ Id.VSub_DollarName '$TASTE_API_KEY')}
          spids: [28]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:info)
          op: assign_op.Equal
          rhs: {(DQ <0>)}
          spids: [31]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:search)
          op: assign_op.Equal
          rhs: {(DQ <0>)}
          spids: [39]
        )
      ]
    )
    (command.ShFunction
      name: getConfiguredClient
      body: 
        (BraceGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              words: [{<command>} {<-v>} {<curl>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_AndGreat '&>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:configuredClient)
                          op: assign_op.Equal
                          rhs: {(DQ <curl>)}
                          spids: [74]
                        )
                      ]
                    )
                  ]
                  spids: [58 71]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              words: [{<command>} {<-v>} {<wget>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_AndGreat '&>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:configuredClient)
                          op: assign_op.Equal
                          rhs: {(DQ <wget>)}
                          spids: [96]
                        )
                      ]
                    )
                  ]
                  spids: [80 93]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              words: [{<command>} {<-v>} {<fetch>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_AndGreat '&>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:configuredClient)
                          op: assign_op.Equal
                          rhs: {(DQ <fetch>)}
                          spids: [118]
                        )
                      ]
                    )
                  ]
                  spids: [102 115]
                )
              ]
              else_action: [
                (C {<echo>} 
                  {(DQ <'Error: This tool reqires either curl, wget, or fetch to be installed.'>)}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: getConfiguredPython
      body: 
        (BraceGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              words: [{<command>} {<-v>} {<python2>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_AndGreat '&>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:configuredPython)
                          op: assign_op.Equal
                          rhs: {(DQ <python2>)}
                          spids: [167]
                        )
                      ]
                    )
                  ]
                  spids: [151 164]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              words: [{<command>} {<-v>} {<python>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_AndGreat '&>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:configuredPython)
                          op: assign_op.Equal
                          rhs: {(DQ <python>)}
                          spids: [189]
                        )
                      ]
                    )
                  ]
                  spids: [173 186]
                )
              ]
              else_action: [
                (C {<echo>} {(DQ <'Error: This tool requires python 2 to be installed.'>)})
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: python
      body: 
        (BraceGroup
          children: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName '$configuredPython'))}
              arms: [
                (case_arm
                  pat_list: [{<python2>}]
                  action: [(C {<python2>} {(DQ ($ Id.VSub_At '$@'))})]
                  spids: [232 233 240 -1]
                )
                (case_arm
                  pat_list: [{<python>}]
                  action: [(C {<python>} {(DQ ($ Id.VSub_At '$@'))})]
                  spids: [243 244 251 -1]
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: httpGet
      body: 
        (BraceGroup
          children: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName '$configuredClient'))}
              arms: [
                (case_arm
                  pat_list: [{<curl>}]
                  action: [(C {<curl>} {<-A>} {<curl>} {<-s>} {(DQ ($ Id.VSub_At '$@'))})]
                  spids: [278 279 292 -1]
                )
                (case_arm
                  pat_list: [{<wget>}]
                  action: [(C {<wget>} {<-qO->} {(DQ ($ Id.VSub_At '$@'))})]
                  spids: [295 296 305 -1]
                )
                (case_arm
                  pat_list: [{<fetch>}]
                  action: [(C {<fetch>} {<-o>} {(DQ <...>)})]
                  spids: [308 309 318 -1]
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: checkInternet
      body: 
        (BraceGroup
          children: [
            (command.Pipeline
              children: [
                (C {<echo>} {<-e>} 
                  {
                    (DQ <'GET http://google.com HTTP/1.0'> <Id.Lit_BadBackslash '\\'> <n> 
                      <Id.Lit_BadBackslash '\\'> <n>
                    )
                  }
                )
                (command.Simple
                  words: [{<nc>} {<google.com>} {<80>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {<'/dev/null'>}
                    )
                    (redir
                      op: <Id.Redir_GreatAnd '2>&'>
                      loc: (redir_loc.Fd fd:2)
                      arg: {<1>}
                    )
                  ]
                  do_fork: T
                )
              ]
              negated: F
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '$?')} {<-eq>} {<0>} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [(command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})]
                  spids: [365 378]
                )
              ]
              else_action: [
                (command.Simple
                  words: [{<echo>} {(DQ <'Error: no active internet connection'>)}]
                  redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                  do_fork: T
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: update
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:repositoryName)
                  op: assign_op.Equal
                  rhs: {(DQ <Bash-Snippets>)}
                  spids: [434]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:githubUserName)
                  op: assign_op.Equal
                  rhs: {(DQ <alexanderepstein>)}
                  spids: [443]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:nameOfInstallFile)
                  op: assign_op.Equal
                  rhs: {(DQ <install.sh>)}
                  spids: [452]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:latestVersion)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<httpGet>} 
                                {<https> <Id.Lit_Colon ':'> <'//api.github.com/repos/'> 
                                  ($ Id.VSub_DollarName '$githubUserName') <'/'> ($ Id.VSub_DollarName '$repositoryName') <'/tags'>
                                }
                              )
                              (C {<grep>} {<-Eo>} {(SQ <'"name":.*?[^\\\\]",'>)})
                              (C {<head>} {<-1>})
                              (C {<grep>} {<-Eo>} {(DQ <'[0-9.]+'>)})
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [461]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.LogicalOr
                                  left: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {($ Id.VSub_DollarName '$currentVersion')}
                                      right: {(DQ )}
                                    )
                                  right: 
                                    (bool_expr.LogicalOr
                                      left: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {($ Id.VSub_DollarName '$repositoryName')}
                                          right: {(DQ )}
                                        )
                                      right: 
                                        (bool_expr.LogicalOr
                                          left: 
                                            (bool_expr.Binary
                                              op_id: Id.BoolBinary_GlobDEqual
                                              left: {($ Id.VSub_DollarName '$githubUserName')}
                                              right: {(DQ )}
                                            )
                                          right: 
                                            (bool_expr.Binary
                                              op_id: Id.BoolBinary_GlobDEqual
                                              left: {($ Id.VSub_DollarName '$nameOfInstallFile')}
                                              right: {(DQ )}
                                            )
                                        )
                                    )
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [
                        {<echo>}
                        {(DQ <'Error: update utility has not been configured correctly.'>)}
                      ]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [505 545]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {($ Id.VSub_DollarName '$latestVersion')}
                                  right: {(DQ )}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [{<echo>} {(DQ <'Error: no active internet connection'>)}]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [563 576]
                )
              ]
              else_action: [
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobNEqual
                                      left: {(DQ ($ Id.VSub_DollarName '$latestVersion'))}
                                      right: {(DQ ($ Id.VSub_DollarName '$currentVersion'))}
                                    )
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (C {<echo>} 
                          {(DQ <'Version '> ($ Id.VSub_DollarName '$latestVersion') <' available'>)}
                        )
                        (C {<echo>} {<-n>} 
                          {
                            (DQ <'Do you wish to update '> ($ Id.VSub_DollarName '$repositoryName') 
                              <' [Y/n]: '>
                            )
                          }
                        )
                        (C {<read>} {<-r>} {<answer>})
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.LogicalOr
                                              left: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobDEqual
                                                  left: {(DQ ($ Id.VSub_DollarName '$answer'))}
                                                  right: {(DQ <Y>)}
                                                )
                                              right: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobDEqual
                                                  left: {(DQ ($ Id.VSub_DollarName '$answer'))}
                                                  right: {(DQ <y>)}
                                                )
                                            )
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              action: [
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (C {<cd>} {(word_part.TildeSub token:<Id.Lit_TildeLike '~'>)})
                                    (BraceGroup
                                      children: [
                                        (command.Sentence
                                          child: (C {<echo>} {(SQ <'Update Failed'>)})
                                          terminator: <Id.Op_Semi _>
                                        )
                                        (command.Sentence
                                          child: 
                                            (command.ControlFlow
                                              token: <Id.ControlFlow_Exit exit>
                                              arg_word: {<1>}
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  ]
                                )
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (command.Sentence
                                              child: 
                                                (command.DBracket
                                                  expr: 
                                                    (bool_expr.Unary
                                                      op_id: Id.BoolUnary_d
                                                      child: 
                                                        {
                                                          (word_part.TildeSub
                                                            token: <Id.Lit_TildeLike '~'>
                                                          ) <'/'> ($ Id.VSub_DollarName '$repositoryName')
                                                        }
                                                    )
                                                )
                                              terminator: <Id.Op_Semi _>
                                            )
                                          ]
                                        )
                                      action: [
                                        (command.Sentence
                                          child: 
                                            (command.AndOr
                                              ops: [Id.Op_DPipe]
                                              children: [
                                                (C {<rm>} {<-r>} {<-f>} 
                                                  {($ Id.VSub_DollarName '$repositoryName')}
                                                )
                                                (BraceGroup
                                                  children: [
                                                    (command.Sentence
                                                      child: 
                                                        (C {<echo>} 
                                                          {
                                                            (DQ 
                                                              <
'Permissions Error: try running the update as sudo'
                                                              >
                                                            )
                                                          }
                                                        )
                                                      terminator: <Id.Op_Semi _>
                                                    )
                                                    (command.Sentence
                                                      child: 
                                                        (command.ControlFlow
                                                          token: <Id.ControlFlow_Exit exit>
                                                          arg_word: {<1>}
                                                        )
                                                      terminator: <Id.Op_Semi _>
                                                    )
                                                  ]
                                                )
                                              ]
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                      spids: [701 714]
                                    )
                                  ]
                                )
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (C {<git>} {<clone>} 
                                      {
                                        (DQ <'https://github.com/'> 
                                          ($ Id.VSub_DollarName '$githubUserName') <'/'> ($ Id.VSub_DollarName '$repositoryName')
                                        )
                                      }
                                    )
                                    (BraceGroup
                                      children: [
                                        (command.Sentence
                                          child: 
                                            (C {<echo>} {(DQ <'Couldn\'t download latest version'>)})
                                          terminator: <Id.Op_Semi _>
                                        )
                                        (command.Sentence
                                          child: 
                                            (command.ControlFlow
                                              token: <Id.ControlFlow_Exit exit>
                                              arg_word: {<1>}
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  ]
                                )
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (C {<cd>} {($ Id.VSub_DollarName '$repositoryName')})
                                    (BraceGroup
                                      children: [
                                        (command.Sentence
                                          child: (C {<echo>} {(SQ <'Update Failed'>)})
                                          terminator: <Id.Op_Semi _>
                                        )
                                        (command.Sentence
                                          child: 
                                            (command.ControlFlow
                                              token: <Id.ControlFlow_Exit exit>
                                              arg_word: {<1>}
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  ]
                                )
                                (command.AndOr
                                  ops: [Id.Op_DPipe Id.Op_DPipe]
                                  children: [
                                    (command.Simple
                                      words: [
                                        {<git>}
                                        {<checkout>}
                                        {(DQ <v> ($ Id.VSub_DollarName '$latestVersion'))}
                                      ]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_Great '2>'>
                                          loc: (redir_loc.Fd fd:2)
                                          arg: {<'/dev/null'>}
                                        )
                                      ]
                                      do_fork: T
                                    )
                                    (command.Simple
                                      words: [
                                        {<git>}
                                        {<checkout>}
                                        {(DQ ($ Id.VSub_DollarName '$latestVersion'))}
                                      ]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_Great '2>'>
                                          loc: (redir_loc.Fd fd:2)
                                          arg: {<'/dev/null'>}
                                        )
                                      ]
                                      do_fork: T
                                    )
                                    (C {<echo>} 
                                      {
                                        (DQ 
                                          <
'Couldn\'t git checkout to stable release, updating to latest commit.'
                                          >
                                        )
                                      }
                                    )
                                  ]
                                )
                                (C {<chmod>} {<a> <Id.Lit_Other '+'> <x>} {<install.sh>})
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (C {<'./'> ($ Id.VSub_DollarName '$nameOfInstallFile')} 
                                      {(DQ <update>)}
                                    )
                                    (command.ControlFlow
                                      token: <Id.ControlFlow_Exit exit>
                                      arg_word: {<1>}
                                    )
                                  ]
                                )
                                (C {<cd>} {<..>})
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (C {<rm>} {<-r>} {<-f>} {($ Id.VSub_DollarName '$repositoryName')})
                                    (BraceGroup
                                      children: [
                                        (command.Sentence
                                          child: 
                                            (C {<echo>} 
                                              {
                                                (DQ 
                                                  <
'Permissions Error: update succesfull but cannot delete temp files located at ~/'
                                                  > ($ Id.VSub_DollarName '$repositoryName') <' delete this directory with sudo'>
                                                )
                                              }
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                        (command.Sentence
                                          child: 
                                            (command.ControlFlow
                                              token: <Id.ControlFlow_Exit exit>
                                              arg_word: {<1>}
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  ]
                                )
                              ]
                              spids: [644 673]
                            )
                          ]
                          else_action: [
                            (command.ControlFlow
                              token: <Id.ControlFlow_Exit exit>
                              arg_word: {<1>}
                            )
                          ]
                        )
                      ]
                      spids: [597 614]
                    )
                  ]
                  else_action: [
                    (C {<echo>} 
                      {
                        (DQ ($ Id.VSub_DollarName '$repositoryName') 
                          <' is already the latest version'>
                        )
                      }
                    )
                  ]
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: getSimilar
      body: 
        (BraceGroup
          children: [
            (C {<export>} {<Id.Lit_VarLike 'PYTHONIOENCODING='> <utf8>})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:media)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {(DQ ($ Id.VSub_At '$@'))})
                              (C {<tr>} {(DQ <' '>)} {<Id.Lit_Other '+'>})
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [948]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:response)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<httpGet>} 
                            {
                              (DQ <'https://tastedive.com/api/similar?q='> 
                                ($ Id.VSub_DollarName '$media') <'&k='> ($ Id.VSub_DollarName '$apiKey') <'&info='> ($ Id.VSub_DollarName '$info')
                              )
                            }
                          )
                      )
                    }
                  spids: [970]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:nameOne)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.AndOr
                            ops: [Id.Op_DPipe]
                            children: [
                              (command.Pipeline
                                children: [
                                  (C {<echo>} {($ Id.VSub_DollarName '$response')})
                                  (command.Simple
                                    words: [
                                      {<python>}
                                      {<-c>}
                                      {
                                        (DQ 
                                          <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][0][\'Name\']'
                                          >
                                        )
                                      }
                                    ]
                                    redirects: [
                                      (redir
                                        op: <Id.Redir_Great '2>'>
                                        loc: (redir_loc.Fd fd:2)
                                        arg: {<'/dev/null'>}
                                      )
                                    ]
                                    do_fork: T
                                  )
                                ]
                                negated: F
                              )
                              (BraceGroup
                                children: [
                                  (command.Sentence
                                    child: (C {<echo>} {(DQ <'Error: Did you search a valid item?'>)})
                                    terminator: <Id.Op_Semi _>
                                  )
                                  (command.Sentence
                                    child: 
                                      (command.ControlFlow
                                        token: <Id.ControlFlow_Return return>
                                        arg_word: {<1>}
                                      )
                                    terminator: <Id.Op_Semi _>
                                  )
                                ]
                              )
                            ]
                          )
                      )
                    }
                  spids: [989]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:typeOne)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName '$response')})
                              (command.Simple
                                words: [
                                  {<python>}
                                  {<-c>}
                                  {
                                    (DQ 
                                      <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][0][\'Type\']'
                                      >
                                    )
                                  }
                                ]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [1030]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:nameTwo)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName '$response')})
                              (command.Simple
                                words: [
                                  {<python>}
                                  {<-c>}
                                  {
                                    (DQ 
                                      <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][1][\'Name\']'
                                      >
                                    )
                                  }
                                ]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [1052]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:typeTwo)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName '$response')})
                              (command.Simple
                                words: [
                                  {<python>}
                                  {<-c>}
                                  {
                                    (DQ 
                                      <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][1][\'Type\']'
                                      >
                                    )
                                  }
                                ]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [1074]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:nameThree)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName '$response')})
                              (command.Simple
                                words: [
                                  {<python>}
                                  {<-c>}
                                  {
                                    (DQ 
                                      <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][2][\'Name\']'
                                      >
                                    )
                                  }
                                ]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [1096]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:typeThree)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName '$response')})
                              (command.Simple
                                words: [
                                  {<python>}
                                  {<-c>}
                                  {
                                    (DQ 
                                      <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][2][\'Type\']'
                                      >
                                    )
                                  }
                                ]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [1118]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {($ Id.VSub_DollarName '$info')}
                                  right: {(DQ <1>)}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:wikiOne)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<echo>} {($ Id.VSub_DollarName '$response')})
                                      (command.Simple
                                        words: [
                                          {<python>}
                                          {<-c>}
                                          {
                                            (DQ 
                                              <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][0][\'wTeaser\']'
                                              >
                                            )
                                          }
                                        ]
                                        redirects: [
                                          (redir
                                            op: <Id.Redir_Great '2>'>
                                            loc: (redir_loc.Fd fd:2)
                                            arg: {<'/dev/null'>}
                                          )
                                        ]
                                        do_fork: T
                                      )
                                    ]
                                    negated: F
                                  )
                              )
                            }
                          spids: [1160]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:wikiTwo)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<echo>} {($ Id.VSub_DollarName '$response')})
                                      (command.Simple
                                        words: [
                                          {<python>}
                                          {<-c>}
                                          {
                                            (DQ 
                                              <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][1][\'wTeaser\']'
                                              >
                                            )
                                          }
                                        ]
                                        redirects: [
                                          (redir
                                            op: <Id.Redir_Great '2>'>
                                            loc: (redir_loc.Fd fd:2)
                                            arg: {<'/dev/null'>}
                                          )
                                        ]
                                        do_fork: T
                                      )
                                    ]
                                    negated: F
                                  )
                              )
                            }
                          spids: [1182]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:wikiThree)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<echo>} {($ Id.VSub_DollarName '$response')})
                                      (command.Simple
                                        words: [
                                          {<python>}
                                          {<-c>}
                                          {
                                            (DQ 
                                              <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][2][\'wTeaser\']'
                                              >
                                            )
                                          }
                                        ]
                                        redirects: [
                                          (redir
                                            op: <Id.Redir_Great '2>'>
                                            loc: (redir_loc.Fd fd:2)
                                            arg: {<'/dev/null'>}
                                          )
                                        ]
                                        do_fork: T
                                      )
                                    ]
                                    negated: F
                                  )
                              )
                            }
                          spids: [1204]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:youtube)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<echo>} {($ Id.VSub_DollarName '$response')})
                                      (command.Simple
                                        words: [
                                          {<python>}
                                          {<-c>}
                                          {
                                            (DQ 
                                              <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Results\'][0][\'yUrl\']'
                                              >
                                            )
                                          }
                                        ]
                                        redirects: [
                                          (redir
                                            op: <Id.Redir_Great '2>'>
                                            loc: (redir_loc.Fd fd:2)
                                            arg: {<'/dev/null'>}
                                          )
                                        ]
                                        do_fork: T
                                      )
                                    ]
                                    negated: F
                                  )
                              )
                            }
                          spids: [1226]
                        )
                      ]
                    )
                  ]
                  spids: [1140 1154]
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: getInfo
      body: 
        (BraceGroup
          children: [
            (C {<export>} {<Id.Lit_VarLike 'PYTHONIOENCODING='> <utf8>})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:media)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {(DQ ($ Id.VSub_At '$@'))})
                              (C {<tr>} {(DQ <' '>)} {<Id.Lit_Other '+'>})
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [1272]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:response)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<httpGet>} 
                            {
                              (DQ <'https://tastedive.com/api/similar?q='> 
                                ($ Id.VSub_DollarName '$media') <'&k='> ($ Id.VSub_DollarName '$apiKey') <'&info='> ($ Id.VSub_DollarName '$info')
                              )
                            }
                          )
                      )
                    }
                  spids: [1294]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:name)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName '$response')})
                              (C {<python>} {<-c>} 
                                {
                                  (DQ 
                                    <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Info\'][0][\'Name\']'
                                    >
                                  )
                                }
                              )
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [1309]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:type)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName '$response')})
                              (C {<python>} {<-c>} 
                                {
                                  (DQ 
                                    <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Info\'][0][\'Type\']'
                                    >
                                  )
                                }
                              )
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [1327]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {($ Id.VSub_DollarName '$info')}
                                  right: {(DQ <1>)}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:wiki)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<echo>} {($ Id.VSub_DollarName '$response')})
                                      (C {<python>} {<-c>} 
                                        {
                                          (DQ 
                                            <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Info\'][0][\'wTeaser\']'
                                            >
                                          )
                                        }
                                      )
                                    ]
                                    negated: F
                                  )
                              )
                            }
                          spids: [1363]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:youtube)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<echo>} {($ Id.VSub_DollarName '$response')})
                                      (C {<python>} {<-c>} 
                                        {
                                          (DQ 
                                            <
'import sys, json; print json.load(sys.stdin)[\'Similar\'][\'Info\'][0][\'yUrl\']'
                                            >
                                          )
                                        }
                                      )
                                    ]
                                    negated: F
                                  )
                              )
                            }
                          spids: [1381]
                        )
                      ]
                    )
                  ]
                  spids: [1345 1360]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:wiki)
                      op: assign_op.Equal
                      rhs: {(DQ <None>)}
                      spids: [1402]
                    )
                  ]
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:youtube)
                      op: assign_op.Equal
                      rhs: {(DQ <None>)}
                      spids: [1408]
                    )
                  ]
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: printResults
      body: 
        (BraceGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {($ Id.VSub_DollarName '$info')}
                                  right: {(DQ <1>)}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<echo>} {(DQ <'==================================='>)})
                    (C {<echo>})
                    (C {<echo>} {($ Id.VSub_DollarName '$nameOne') <Id.Lit_Colon ':'>} 
                      {($ Id.VSub_DollarName '$typeOne')}
                    )
                    (C {<echo>} {($ Id.VSub_DollarName '$wikiOne')})
                    (C {<echo>})
                    (C {<echo>})
                    (C {<echo>} {($ Id.VSub_DollarName '$nameTwo') <Id.Lit_Colon ':'>} 
                      {($ Id.VSub_DollarName '$typeTwo')}
                    )
                    (C {<echo>} {($ Id.VSub_DollarName '$wikiTwo')})
                    (C {<echo>})
                    (C {<echo>})
                    (C {<echo>} {($ Id.VSub_DollarName '$nameThree') <Id.Lit_Colon ':'>} 
                      {($ Id.VSub_DollarName '$typeThree')}
                    )
                    (C {<echo>} {($ Id.VSub_DollarName '$wikiThree')})
                    (C {<echo>})
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobNEqual
                                          left: {($ Id.VSub_DollarName '$youtube')}
                                          right: {(DQ <None>)}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.Sentence
                              child: (C {<echo>} {($ Id.VSub_DollarName '$youtube')})
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          spids: [1507 1521]
                        )
                      ]
                    )
                    (C {<echo>})
                    (C {<echo>} {(DQ <'==================================='>)})
                  ]
                  spids: [1426 1440]
                )
              ]
              else_action: [
                (C {<echo>} {(DQ <'==================================='>)})
                (C {<echo>} {($ Id.VSub_DollarName '$nameOne') <Id.Lit_Colon ':'>} 
                  {($ Id.VSub_DollarName '$typeOne')}
                )
                (C {<echo>} {($ Id.VSub_DollarName '$nameTwo') <Id.Lit_Colon ':'>} 
                  {($ Id.VSub_DollarName '$typeTwo')}
                )
                (C {<echo>} {($ Id.VSub_DollarName '$nameThree') <Id.Lit_Colon ':'>} 
                  {($ Id.VSub_DollarName '$typeThree')}
                )
                (C {<echo>} {(DQ <'==================================='>)})
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: printInfo
      body: 
        (BraceGroup
          children: [
            (C {<echo>} {(DQ <'==================================='>)})
            (C {<echo>})
            (C {<echo>} {($ Id.VSub_DollarName '$name') <Id.Lit_Colon ':'>} 
              {($ Id.VSub_DollarName '$type')}
            )
            (C {<echo>} {($ Id.VSub_DollarName '$wiki')})
            (C {<echo>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobNEqual
                                  left: {($ Id.VSub_DollarName '$youtube')}
                                  right: {(DQ <None>)}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.Sentence
                      child: (C {<echo>} {($ Id.VSub_DollarName '$youtube')})
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [1619 1633]
                )
              ]
            )
            (C {<echo>} {(DQ <'==================================='>)})
          ]
        )
    )
    (command.ShFunction
      name: usage
      body: 
        (BraceGroup
          children: [
            (C {<echo>} {(DQ <Taste>)})
            (C {<echo>} 
              {
                (DQ 
                  <
'Description: A recommendation engine that provides 3 similar items based on some input topic.'
                  >
                )
              }
            )
            (C {<echo>} 
              {(DQ <'  Taste also has the ability to provide information on the item of interest.'>)}
            )
            (C {<echo>} {(DQ <'  Supports: shows, books, music, artists, movies, authors, games'>)})
            (C {<echo>} {(DQ <'Usage: taste [flag] [item]'>)})
            (C {<echo>} {(DQ <'  -i Get more information on similar items'>)})
            (C {<echo>} {(DQ <'  -s Get information on the item itself'>)})
            (C {<echo>} {(DQ <'  -u Update Bash-Snippet Tools'>)})
            (C {<echo>} {(DQ <'  -h Show the help'>)})
            (C {<echo>} {(DQ <'  -v Get the tool version'>)})
            (C {<echo>} {(DQ <'Examples:'>)})
            (C {<echo>} {(DQ <'  taste -i Kendrick Lamar'>)})
            (C {<echo>} {(DQ <'  taste Catcher in the Rye'>)})
            (C {<echo>} {(DQ <'  taste -s Red Hot Chili Peppers'>)})
          ]
        )
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: {($ Id.VSub_DollarName '$apiKey')}
                          right: {(DQ )}
                        )
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} {(DQ <'Error: API key not setup properly'>)})
            (C {<echo>} {(DQ <'To get an API key visit https://tastedive.com/account/api_access'>)})
            (C {<echo>} 
              {
                (SQ 
                  <
'After getting the API key run the following command: export TASTE_API_KEY="yourAPIKeyGoesHere"'
                  >
                )
              }
            )
            (C {<echo>} 
              {
                (DQ 
                  <
'After following all the steps and issues still persist try adding export TASTE_API_KEY manually to your .bash_profile'
                  >
                )
              }
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [1759 1772]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<getConfiguredPython>})
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<getConfiguredClient>})
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<checkInternet>})
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
      ]
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (command.Sentence
              child: (C {<getopts>} {(DQ <uvhis>)} {<opt>})
              terminator: <Id.Op_Semi _>
            )
          ]
        )
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {($ Id.VSub_DollarName '$opt')}
              arms: [
                (case_arm
                  pat_list: [{(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\?'>)}]
                  action: [
                    (command.Simple
                      words: [{<echo>} {(DQ <'Invalid option: -'> ($ Id.VSub_DollarName '$OPTARG'))}]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [1856 1857 1876 -1]
                )
                (case_arm
                  pat_list: [{<h>}]
                  action: [
                    (C {<usage>})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [1879 1880 1891 -1]
                )
                (case_arm
                  pat_list: [{<v>}]
                  action: [
                    (C {<echo>} {(DQ <'Version '> ($ Id.VSub_DollarName '$currentVersion'))})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [1894 1895 1911 -1]
                )
                (case_arm
                  pat_list: [{<u>}]
                  action: [
                    (C {<update>})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [1914 1915 1926 -1]
                )
                (case_arm
                  pat_list: [{<i>}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {($ Id.VSub_DollarName '$search')}
                                          right: {(DQ <0>)}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:info)
                                  op: assign_op.Equal
                                  rhs: {(DQ <1>)}
                                  spids: [1950]
                                )
                              ]
                            )
                          ]
                          spids: [1933 1947]
                        )
                      ]
                      else_action: [
                        (C {<echo>} 
                          {
                            (DQ 
                              <
'Error: the options -i and -s are mutually exclusive (-s already uses -i)'
                              >
                            )
                          }
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Exit exit>
                          arg_word: {<1>}
                        )
                      ]
                    )
                  ]
                  spids: [1929 1930 1974 -1]
                )
                (case_arm
                  pat_list: [{<s>}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobNEqual
                                          left: {($ Id.VSub_DollarName '$info')}
                                          right: {(DQ <1>)}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:search)
                                  op: assign_op.Equal
                                  rhs: {(DQ <1>)}
                                  spids: [1998]
                                )
                              ]
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:info)
                                  op: assign_op.Equal
                                  rhs: {(DQ <1>)}
                                  spids: [2004]
                                )
                              ]
                            )
                          ]
                          spids: [1981 1995]
                        )
                      ]
                      else_action: [
                        (C {<echo>} 
                          {
                            (DQ 
                              <
'Error: the options -i and -s are mutually exclusive (-s already uses -i)'
                              >
                            )
                          }
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Exit exit>
                          arg_word: {<1>}
                        )
                      ]
                    )
                  ]
                  spids: [1977 1978 2028 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Colon ':'>}]
                  action: [
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ <'Option -'> ($ Id.VSub_DollarName '$OPTARG') <' requires an argument.'>)
                        }
                      ]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [2031 2032 2052 -1]
                )
              ]
            )
          ]
        )
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: {($ Id.VSub_Pound '$#')}
                          right: {<0>}
                        )
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<usage>})]
          spids: [2060 2073]
        )
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: {($ Id.VSub_Number '$1')}
                          right: {(DQ <update>)}
                        )
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<update>})]
          spids: [2078 2092]
        )
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: {($ Id.VSub_Number '$1')}
                          right: {(DQ <help>)}
                        )
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<usage>})]
          spids: [2097 2111]
        )
      ]
      else_action: [
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.Binary
                              op_id: Id.BoolBinary_GlobDEqual
                              left: {($ Id.VSub_DollarName '$search')}
                              right: {(DQ <0>)}
                            )
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              action: [
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {($ Id.VSub_DollarName '$info')}
                                      right: {(DQ <0>)}
                                    )
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (C {<getSimilar>} {(DQ ($ Id.VSub_At '$@'))})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Exit exit>
                              arg_word: {<1>}
                            )
                          ]
                        )
                        (C {<printResults>})
                      ]
                      spids: [2136 2150]
                    )
                  ]
                  else_action: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<getSimilar>} 
                          {
                            (DQ 
                              (braced_var_sub
                                token: <Id.VSub_At '@'>
                                suffix_op: (suffix_op.Slice begin:{<Id.Lit_Digits 2>})
                              )
                            )
                          }
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Exit exit>
                          arg_word: {<1>}
                        )
                      ]
                    )
                    (C {<printResults>})
                  ]
                )
              ]
              spids: [2119 2133]
            )
          ]
          else_action: [
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<getInfo>} 
                  {
                    (DQ 
                      (braced_var_sub
                        token: <Id.VSub_At '@'>
                        suffix_op: (suffix_op.Slice begin:{<Id.Lit_Digits 2>})
                      )
                    )
                  }
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              ]
            )
            (C {<printInfo>})
          ]
        )
      ]
    )
  ]
)