(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:currentVersion) op:Equal rhs:{(DQ (1.11.1))} spids:[7])]
      spids: [7]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:configuredClient) op:Equal rhs:{(DQ )} spids:[12])]
      spids: [12]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:configuredPython) op:Equal rhs:{(DQ )} spids:[16])]
      spids: [16]
    )
    (C {(source)} {(TildeSubPart token:<Lit_TildeLike '~'>) (/.bash_profile)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:apiKey)
          op: Equal
          rhs: {($ VSub_Name '$TASTE_API_KEY')}
          spids: [28]
        )
      ]
      spids: [28]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:info) op:Equal rhs:{(DQ (0))} spids:[31])]
      spids: [31]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:search) op:Equal rhs:{(DQ (0))} spids:[39])]
      spids: [39]
    )
    (FuncDef
      name: getConfiguredClient
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (SimpleCommand
                          words: [{(command)} {(-v)} {(curl)}]
                          redirects: [
                            (Redir
                              op: <Redir_AndGreat '&>'>
                              fd: 16777215
                              arg_word: {(/dev/null)}
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (curl))}
                          spids: [74]
                        )
                      ]
                      spids: [74]
                    )
                  ]
                  spids: [16777215 71]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (SimpleCommand
                          words: [{(command)} {(-v)} {(wget)}]
                          redirects: [
                            (Redir
                              op: <Redir_AndGreat '&>'>
                              fd: 16777215
                              arg_word: {(/dev/null)}
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (wget))}
                          spids: [96]
                        )
                      ]
                      spids: [96]
                    )
                  ]
                  spids: [80 93]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (SimpleCommand
                          words: [{(command)} {(-v)} {(fetch)}]
                          redirects: [
                            (Redir
                              op: <Redir_AndGreat '&>'>
                              fd: 16777215
                              arg_word: {(/dev/null)}
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (fetch))}
                          spids: [118]
                        )
                      ]
                      spids: [118]
                    )
                  ]
                  spids: [102 115]
                )
              ]
              else_action: [
                (C {(echo)} 
                  {(DQ ('Error: This tool reqires either curl, wget, or fetch to be installed.'))}
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
              ]
              spids: [124 139]
            )
          ]
          spids: [55]
        )
      spids: [51 54]
    )
    (FuncDef
      name: getConfiguredPython
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (SimpleCommand
                          words: [{(command)} {(-v)} {(python2)}]
                          redirects: [
                            (Redir
                              op: <Redir_AndGreat '&>'>
                              fd: 16777215
                              arg_word: {(/dev/null)}
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredPython)
                          op: Equal
                          rhs: {(DQ (python2))}
                          spids: [167]
                        )
                      ]
                      spids: [167]
                    )
                  ]
                  spids: [16777215 164]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (SimpleCommand
                          words: [{(command)} {(-v)} {(python)}]
                          redirects: [
                            (Redir
                              op: <Redir_AndGreat '&>'>
                              fd: 16777215
                              arg_word: {(/dev/null)}
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredPython)
                          op: Equal
                          rhs: {(DQ (python))}
                          spids: [189]
                        )
                      ]
                      spids: [189]
                    )
                  ]
                  spids: [173 186]
                )
              ]
              else_action: [
                (C {(echo)} {(DQ ('Error: This tool requires python 2 to be installed.'))})
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
              ]
              spids: [195 210]
            )
          ]
          spids: [148]
        )
      spids: [144 147]
    )
    (FuncDef
      name: python
      body: 
        (BraceGroup
          children: [
            (Case
              to_match: {(DQ ($ VSub_Name '$configuredPython'))}
              arms: [
                (case_arm
                  pat_list: [{(python2)}]
                  action: [(C {(python2)} {(DQ ($ VSub_At '$@'))})]
                  spids: [232 233 240 16777215]
                )
                (case_arm
                  pat_list: [{(python)}]
                  action: [(C {(python)} {(DQ ($ VSub_At '$@'))})]
                  spids: [243 244 251 16777215]
                )
              ]
              spids: [223 229 254]
            )
          ]
          spids: [220]
        )
      spids: [216 219]
    )
    (FuncDef
      name: httpGet
      body: 
        (BraceGroup
          children: [
            (Case
              to_match: {(DQ ($ VSub_Name '$configuredClient'))}
              arms: [
                (case_arm
                  pat_list: [{(curl)}]
                  action: [(C {(curl)} {(-A)} {(curl)} {(-s)} {(DQ ($ VSub_At '$@'))})]
                  spids: [278 279 292 16777215]
                )
                (case_arm
                  pat_list: [{(wget)}]
                  action: [(C {(wget)} {(-qO-)} {(DQ ($ VSub_At '$@'))})]
                  spids: [295 296 305 16777215]
                )
                (case_arm
                  pat_list: [{(fetch)}]
                  action: [(C {(fetch)} {(-o)} {(DQ (...))})]
                  spids: [308 309 318 16777215]
                )
              ]
              spids: [269 275 321]
            )
          ]
          spids: [266]
        )
      spids: [262 265]
    )
    (FuncDef
      name: checkInternet
      body: 
        (BraceGroup
          children: [
            (Pipeline
              children: [
                (C {(echo)} {(-e)} 
                  {(DQ ('GET http://google.com HTTP/1.0') (Lit_Other '\\') (n) (Lit_Other '\\') (n))}
                )
                (SimpleCommand
                  words: [{(nc)} {(google.com)} {(80)}]
                  redirects: [
                    (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})
                    (Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)})
                  ]
                )
              ]
              negated: F
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {($ VSub_QMark '$?')} {(-eq)} {(0)} {(Lit_Other ']')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                  spids: [16777215 378]
                )
              ]
              else_action: [
                (SimpleCommand
                  words: [{(echo)} {(DQ ('Error: no active internet connection'))}]
                  redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
              ]
              spids: [389 410]
            )
          ]
          spids: [331]
        )
      spids: [327 330]
    )
    (FuncDef
      name: update
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:repositoryName)
                  op: Equal
                  rhs: {(DQ (Bash-Snippets))}
                  spids: [434]
                )
              ]
              spids: [434]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:githubUserName)
                  op: Equal
                  rhs: {(DQ (alexanderepstein))}
                  spids: [443]
                )
              ]
              spids: [443]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:nameOfInstallFile)
                  op: Equal
                  rhs: {(DQ (install.sh))}
                  spids: [452]
                )
              ]
              spids: [452]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:latestVersion)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(httpGet)} 
                                    {(https) (Lit_Other ':') (//api.github.com/repos/) 
                                      ($ VSub_Name '$githubUserName') (/) ($ VSub_Name '$repositoryName') (/tags)
                                    }
                                  )
                                  (C {(grep)} {(-Eo)} {(SQ <'"name":.*?[^\\\\]",'>)})
                                  (C {(head)} {(-1)})
                                  (C {(grep)} {(-Eo)} {(DQ ('[0-9.]+'))})
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [462 498]
                      )
                    }
                  spids: [461]
                )
              ]
              spids: [461]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (LogicalOr
                              left: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$currentVersion')}
                                  right: {(DQ )}
                                )
                              right: 
                                (LogicalOr
                                  left: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {($ VSub_Name '$repositoryName')}
                                      right: {(DQ )}
                                    )
                                  right: 
                                    (LogicalOr
                                      left: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: {($ VSub_Name '$githubUserName')}
                                          right: {(DQ )}
                                        )
                                      right: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: {($ VSub_Name '$nameOfInstallFile')}
                                          right: {(DQ )}
                                        )
                                    )
                                )
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {(DQ ('Error: update utility has not been configured correctly.'))}
                      ]
                      redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
                    )
                    (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
                  ]
                  spids: [16777215 545]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_Name '$latestVersion')}
                              right: {(DQ )}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('Error: no active internet connection'))}]
                      redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
                    )
                    (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
                  ]
                  spids: [563 576]
                )
              ]
              else_action: [
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobNEqual
                                  left: {(DQ ($ VSub_Name '$latestVersion'))}
                                  right: {(DQ ($ VSub_Name '$currentVersion'))}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (C {(echo)} {(DQ ('Version ') ($ VSub_Name '$latestVersion') (' available'))})
                        (C {(echo)} {(-n)} 
                          {
                            (DQ ('Do you wish to update ') ($ VSub_Name '$repositoryName') (' [Y/n]: '))
                          }
                        )
                        (C {(read)} {(-r)} {(answer)})
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (DBracket
                                      expr: 
                                        (LogicalOr
                                          left: 
                                            (BoolBinary
                                              op_id: BoolBinary_GlobDEqual
                                              left: {(DQ ($ VSub_Name '$answer'))}
                                              right: {(DQ (Y))}
                                            )
                                          right: 
                                            (BoolBinary
                                              op_id: BoolBinary_GlobDEqual
                                              left: {(DQ ($ VSub_Name '$answer'))}
                                              right: {(DQ (y))}
                                            )
                                        )
                                    )
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [
                                (AndOr
                                  ops: [Op_DPipe]
                                  children: [
                                    (C {(cd)} {(TildeSubPart token:<Lit_TildeLike '~'>)})
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: (C {(echo)} {(SQ <'Update Failed'>)})
                                          terminator: <Op_Semi ';'>
                                        )
                                        (Sentence
                                          child: 
                                            (ControlFlow
                                              token: <ControlFlow_Exit exit>
                                              arg_word: {(1)}
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [682]
                                    )
                                  ]
                                )
                                (If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (Sentence
                                          child: 
                                            (DBracket
                                              expr: 
                                                (BoolUnary
                                                  op_id: BoolUnary_d
                                                  child: 
                                                    {(Lit_TildeLike '~') (/) 
                                                      ($ VSub_Name '$repositoryName')
                                                    }
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (Sentence
                                          child: 
                                            (AndOr
                                              ops: [Op_DPipe]
                                              children: [
                                                (C {(rm)} {(-r)} {(-f)} {($ VSub_Name '$repositoryName')})
                                                (BraceGroup
                                                  children: [
                                                    (Sentence
                                                      child: 
                                                        (C {(echo)} 
                                                          {
                                                            (DQ 
                                                              (
'Permissions Error: try running the update as sudo'
                                                              )
                                                            )
                                                          }
                                                        )
                                                      terminator: <Op_Semi ';'>
                                                    )
                                                    (Sentence
                                                      child: 
                                                        (ControlFlow
                                                          token: <ControlFlow_Exit exit>
                                                          arg_word: {(1)}
                                                        )
                                                      terminator: <Op_Semi ';'>
                                                    )
                                                  ]
                                                  spids: [726]
                                                )
                                              ]
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [16777215 714]
                                    )
                                  ]
                                  spids: [16777215 744]
                                )
                                (AndOr
                                  ops: [Op_DPipe]
                                  children: [
                                    (C {(git)} {(clone)} 
                                      {
                                        (DQ ('https://github.com/') ($ VSub_Name '$githubUserName') (/) 
                                          ($ VSub_Name '$repositoryName')
                                        )
                                      }
                                    )
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: 
                                            (C {(echo)} {(DQ ("Couldn't download latest version"))})
                                          terminator: <Op_Semi ';'>
                                        )
                                        (Sentence
                                          child: 
                                            (ControlFlow
                                              token: <ControlFlow_Exit exit>
                                              arg_word: {(1)}
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [760]
                                    )
                                  ]
                                )
                                (AndOr
                                  ops: [Op_DPipe]
                                  children: [
                                    (C {(cd)} {($ VSub_Name '$repositoryName')})
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: (C {(echo)} {(SQ <'Update Failed'>)})
                                          terminator: <Op_Semi ';'>
                                        )
                                        (Sentence
                                          child: 
                                            (ControlFlow
                                              token: <ControlFlow_Exit exit>
                                              arg_word: {(1)}
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [784]
                                    )
                                  ]
                                )
                                (AndOr
                                  ops: [Op_DPipe Op_DPipe]
                                  children: [
                                    (SimpleCommand
                                      words: [
                                        {(git)}
                                        {(checkout)}
                                        {(DQ (v) ($ VSub_Name '$latestVersion'))}
                                      ]
                                      redirects: [
                                        (Redir
                                          op: <Redir_Great '2>'>
                                          fd: 2
                                          arg_word: {(/dev/null)}
                                        )
                                      ]
                                    )
                                    (SimpleCommand
                                      words: [{(git)} {(checkout)} {(DQ ($ VSub_Name '$latestVersion'))}]
                                      redirects: [
                                        (Redir
                                          op: <Redir_Great '2>'>
                                          fd: 2
                                          arg_word: {(/dev/null)}
                                        )
                                      ]
                                    )
                                    (C {(echo)} 
                                      {
                                        (DQ 
                                          (
"Couldn't git checkout to stable release, updating to latest commit."
                                          )
                                        )
                                      }
                                    )
                                  ]
                                )
                                (C {(chmod)} {(a) (Lit_Other '+') (x)} {(install.sh)})
                                (AndOr
                                  ops: [Op_DPipe]
                                  children: [
                                    (C {(./) ($ VSub_Name '$nameOfInstallFile')} {(DQ (update))})
                                    (ControlFlow
                                      token: <ControlFlow_Exit exit>
                                      arg_word: {(1)}
                                    )
                                  ]
                                )
                                (C {(cd)} {(..)})
                                (AndOr
                                  ops: [Op_DPipe]
                                  children: [
                                    (C {(rm)} {(-r)} {(-f)} {($ VSub_Name '$repositoryName')})
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: 
                                            (C {(echo)} 
                                              {
                                                (DQ 
                                                  (
'Permissions Error: update succesfull but cannot delete temp files located at ~/'
                                                  ) ($ VSub_Name '$repositoryName') (' delete this directory with sudo')
                                                )
                                              }
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                        (Sentence
                                          child: 
                                            (ControlFlow
                                              token: <ControlFlow_Exit exit>
                                              arg_word: {(1)}
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [879]
                                    )
                                  ]
                                )
                              ]
                              spids: [16777215 673]
                            )
                          ]
                          else_action: [(ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})]
                          spids: [898 906]
                        )
                      ]
                      spids: [16777215 614]
                    )
                  ]
                  else_action: [
                    (C {(echo)} 
                      {(DQ ($ VSub_Name '$repositoryName') (' is already the latest version'))}
                    )
                  ]
                  spids: [909 920]
                )
              ]
              spids: [594 923]
            )
          ]
          spids: [419]
        )
      spids: [415 418]
    )
    (FuncDef
      name: getSimilar
      body: 
        (BraceGroup
          children: [
            (C {(export)} {(Lit_VarLike 'PYTHONIOENCODING=') (utf8)})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:media)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {(DQ ($ VSub_At '$@'))})
                                  (C {(tr)} {(DQ (' '))} {(Lit_Other '+')})
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [949 967]
                      )
                    }
                  spids: [948]
                )
              ]
              spids: [948]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:response)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(httpGet)} 
                                {
                                  (DQ ('https://tastedive.com/api/similar?q=') ($ VSub_Name '$media') 
                                    ('&k=') ($ VSub_Name '$apiKey') ('&info=') ($ VSub_Name '$info')
                                  )
                                }
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [971 982]
                      )
                    }
                  spids: [970]
                )
              ]
              spids: [970]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:nameOne)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (AndOr
                                ops: [Op_DPipe]
                                children: [
                                  (Pipeline
                                    children: [
                                      (C {(echo)} {($ VSub_Name '$response')})
                                      (SimpleCommand
                                        words: [
                                          {(python)}
                                          {(-c)}
                                          {
                                            (DQ 
                                              (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][0]['Name']"
                                              )
                                            )
                                          }
                                        ]
                                        redirects: [
                                          (Redir
                                            op: <Redir_Great '2>'>
                                            fd: 2
                                            arg_word: {(/dev/null)}
                                          )
                                        ]
                                      )
                                    ]
                                    negated: F
                                  )
                                  (BraceGroup
                                    children: [
                                      (Sentence
                                        child: 
                                          (C {(echo)} {(DQ ('Error: Did you search a valid item?'))})
                                        terminator: <Op_Semi ';'>
                                      )
                                      (Sentence
                                        child: 
                                          (ControlFlow
                                            token: <ControlFlow_Return return>
                                            arg_word: {(1)}
                                          )
                                        terminator: <Op_Semi ';'>
                                      )
                                    ]
                                    spids: [1011]
                                  )
                                ]
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [990 1027]
                      )
                    }
                  spids: [989]
                )
              ]
              spids: [989]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:typeOne)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {($ VSub_Name '$response')})
                                  (SimpleCommand
                                    words: [
                                      {(python)}
                                      {(-c)}
                                      {
                                        (DQ 
                                          (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][0]['Type']"
                                          )
                                        )
                                      }
                                    ]
                                    redirects: [
                                      (Redir
                                        op: <Redir_Great '2>'>
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                      )
                                    ]
                                  )
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1031 1049]
                      )
                    }
                  spids: [1030]
                )
              ]
              spids: [1030]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:nameTwo)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {($ VSub_Name '$response')})
                                  (SimpleCommand
                                    words: [
                                      {(python)}
                                      {(-c)}
                                      {
                                        (DQ 
                                          (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][1]['Name']"
                                          )
                                        )
                                      }
                                    ]
                                    redirects: [
                                      (Redir
                                        op: <Redir_Great '2>'>
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                      )
                                    ]
                                  )
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1053 1071]
                      )
                    }
                  spids: [1052]
                )
              ]
              spids: [1052]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:typeTwo)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {($ VSub_Name '$response')})
                                  (SimpleCommand
                                    words: [
                                      {(python)}
                                      {(-c)}
                                      {
                                        (DQ 
                                          (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][1]['Type']"
                                          )
                                        )
                                      }
                                    ]
                                    redirects: [
                                      (Redir
                                        op: <Redir_Great '2>'>
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                      )
                                    ]
                                  )
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1075 1093]
                      )
                    }
                  spids: [1074]
                )
              ]
              spids: [1074]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:nameThree)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {($ VSub_Name '$response')})
                                  (SimpleCommand
                                    words: [
                                      {(python)}
                                      {(-c)}
                                      {
                                        (DQ 
                                          (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][2]['Name']"
                                          )
                                        )
                                      }
                                    ]
                                    redirects: [
                                      (Redir
                                        op: <Redir_Great '2>'>
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                      )
                                    ]
                                  )
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1097 1115]
                      )
                    }
                  spids: [1096]
                )
              ]
              spids: [1096]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:typeThree)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {($ VSub_Name '$response')})
                                  (SimpleCommand
                                    words: [
                                      {(python)}
                                      {(-c)}
                                      {
                                        (DQ 
                                          (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][2]['Type']"
                                          )
                                        )
                                      }
                                    ]
                                    redirects: [
                                      (Redir
                                        op: <Redir_Great '2>'>
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                      )
                                    ]
                                  )
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1119 1137]
                      )
                    }
                  spids: [1118]
                )
              ]
              spids: [1118]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_Name '$info')}
                              right: {(DQ (1))}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:wikiOne)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (Pipeline
                                        children: [
                                          (C {(echo)} {($ VSub_Name '$response')})
                                          (SimpleCommand
                                            words: [
                                              {(python)}
                                              {(-c)}
                                              {
                                                (DQ 
                                                  (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][0]['wTeaser']"
                                                  )
                                                )
                                              }
                                            ]
                                            redirects: [
                                              (Redir
                                                op: <Redir_Great '2>'>
                                                fd: 2
                                                arg_word: {(/dev/null)}
                                              )
                                            ]
                                          )
                                        ]
                                        negated: F
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1161 1179]
                              )
                            }
                          spids: [1160]
                        )
                      ]
                      spids: [1160]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:wikiTwo)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (Pipeline
                                        children: [
                                          (C {(echo)} {($ VSub_Name '$response')})
                                          (SimpleCommand
                                            words: [
                                              {(python)}
                                              {(-c)}
                                              {
                                                (DQ 
                                                  (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][1]['wTeaser']"
                                                  )
                                                )
                                              }
                                            ]
                                            redirects: [
                                              (Redir
                                                op: <Redir_Great '2>'>
                                                fd: 2
                                                arg_word: {(/dev/null)}
                                              )
                                            ]
                                          )
                                        ]
                                        negated: F
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1183 1201]
                              )
                            }
                          spids: [1182]
                        )
                      ]
                      spids: [1182]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:wikiThree)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (Pipeline
                                        children: [
                                          (C {(echo)} {($ VSub_Name '$response')})
                                          (SimpleCommand
                                            words: [
                                              {(python)}
                                              {(-c)}
                                              {
                                                (DQ 
                                                  (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][2]['wTeaser']"
                                                  )
                                                )
                                              }
                                            ]
                                            redirects: [
                                              (Redir
                                                op: <Redir_Great '2>'>
                                                fd: 2
                                                arg_word: {(/dev/null)}
                                              )
                                            ]
                                          )
                                        ]
                                        negated: F
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1205 1223]
                              )
                            }
                          spids: [1204]
                        )
                      ]
                      spids: [1204]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:youtube)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (Pipeline
                                        children: [
                                          (C {(echo)} {($ VSub_Name '$response')})
                                          (SimpleCommand
                                            words: [
                                              {(python)}
                                              {(-c)}
                                              {
                                                (DQ 
                                                  (
"import sys, json; print json.load(sys.stdin)['Similar']['Results'][0]['yUrl']"
                                                  )
                                                )
                                              }
                                            ]
                                            redirects: [
                                              (Redir
                                                op: <Redir_Great '2>'>
                                                fd: 2
                                                arg_word: {(/dev/null)}
                                              )
                                            ]
                                          )
                                        ]
                                        negated: F
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1227 1245]
                              )
                            }
                          spids: [1226]
                        )
                      ]
                      spids: [1226]
                    )
                  ]
                  spids: [16777215 1154]
                )
              ]
              spids: [16777215 1248]
            )
          ]
          spids: [936]
        )
      spids: [932 935]
    )
    (FuncDef
      name: getInfo
      body: 
        (BraceGroup
          children: [
            (C {(export)} {(Lit_VarLike 'PYTHONIOENCODING=') (utf8)})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:media)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {(DQ ($ VSub_At '$@'))})
                                  (C {(tr)} {(DQ (' '))} {(Lit_Other '+')})
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1273 1291]
                      )
                    }
                  spids: [1272]
                )
              ]
              spids: [1272]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:response)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(httpGet)} 
                                {
                                  (DQ ('https://tastedive.com/api/similar?q=') ($ VSub_Name '$media') 
                                    ('&k=') ($ VSub_Name '$apiKey') ('&info=') ($ VSub_Name '$info')
                                  )
                                }
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1295 1306]
                      )
                    }
                  spids: [1294]
                )
              ]
              spids: [1294]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:name)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {($ VSub_Name '$response')})
                                  (C {(python)} {(-c)} 
                                    {
                                      (DQ 
                                        (
"import sys, json; print json.load(sys.stdin)['Similar']['Info'][0]['Name']"
                                        )
                                      )
                                    }
                                  )
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1310 1324]
                      )
                    }
                  spids: [1309]
                )
              ]
              spids: [1309]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:type)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {($ VSub_Name '$response')})
                                  (C {(python)} {(-c)} 
                                    {
                                      (DQ 
                                        (
"import sys, json; print json.load(sys.stdin)['Similar']['Info'][0]['Type']"
                                        )
                                      )
                                    }
                                  )
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1328 1342]
                      )
                    }
                  spids: [1327]
                )
              ]
              spids: [1327]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_Name '$info')}
                              right: {(DQ (1))}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:wiki)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (Pipeline
                                        children: [
                                          (C {(echo)} {($ VSub_Name '$response')})
                                          (C {(python)} {(-c)} 
                                            {
                                              (DQ 
                                                (
"import sys, json; print json.load(sys.stdin)['Similar']['Info'][0]['wTeaser']"
                                                )
                                              )
                                            }
                                          )
                                        ]
                                        negated: F
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1364 1378]
                              )
                            }
                          spids: [1363]
                        )
                      ]
                      spids: [1363]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:youtube)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (Pipeline
                                        children: [
                                          (C {(echo)} {($ VSub_Name '$response')})
                                          (C {(python)} {(-c)} 
                                            {
                                              (DQ 
                                                (
"import sys, json; print json.load(sys.stdin)['Similar']['Info'][0]['yUrl']"
                                                )
                                              )
                                            }
                                          )
                                        ]
                                        negated: F
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1382 1396]
                              )
                            }
                          spids: [1381]
                        )
                      ]
                      spids: [1381]
                    )
                  ]
                  spids: [16777215 1360]
                )
              ]
              else_action: [
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:wiki)
                      op: Equal
                      rhs: {(DQ (None))}
                      spids: [1402]
                    )
                  ]
                  spids: [1402]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:youtube)
                      op: Equal
                      rhs: {(DQ (None))}
                      spids: [1408]
                    )
                  ]
                  spids: [1408]
                )
              ]
              spids: [1399 1414]
            )
          ]
          spids: [1260]
        )
      spids: [1256 1259]
    )
    (FuncDef
      name: printResults
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_Name '$info')}
                              right: {(DQ (1))}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(echo)} {(DQ ('==================================='))})
                    (C {(echo)})
                    (C {(echo)} {($ VSub_Name '$nameOne') (Lit_Other ':')} {($ VSub_Name '$typeOne')})
                    (C {(echo)} {($ VSub_Name '$wikiOne')})
                    (C {(echo)})
                    (C {(echo)})
                    (C {(echo)} {($ VSub_Name '$nameTwo') (Lit_Other ':')} {($ VSub_Name '$typeTwo')})
                    (C {(echo)} {($ VSub_Name '$wikiTwo')})
                    (C {(echo)})
                    (C {(echo)})
                    (C {(echo)} {($ VSub_Name '$nameThree') (Lit_Other ':')} 
                      {($ VSub_Name '$typeThree')}
                    )
                    (C {(echo)} {($ VSub_Name '$wikiThree')})
                    (C {(echo)})
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobNEqual
                                      left: {($ VSub_Name '$youtube')}
                                      right: {(DQ (None))}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Sentence
                              child: (C {(echo)} {($ VSub_Name '$youtube')})
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          spids: [16777215 1521]
                        )
                      ]
                      spids: [16777215 1527]
                    )
                    (C {(echo)})
                    (C {(echo)} {(DQ ('==================================='))})
                  ]
                  spids: [16777215 1440]
                )
              ]
              else_action: [
                (C {(echo)} {(DQ ('==================================='))})
                (C {(echo)} {($ VSub_Name '$nameOne') (Lit_Other ':')} {($ VSub_Name '$typeOne')})
                (C {(echo)} {($ VSub_Name '$nameTwo') (Lit_Other ':')} {($ VSub_Name '$typeTwo')})
                (C {(echo)} {($ VSub_Name '$nameThree') (Lit_Other ':')} {($ VSub_Name '$typeThree')})
                (C {(echo)} {(DQ ('==================================='))})
              ]
              spids: [1540 1581]
            )
          ]
          spids: [1423]
        )
      spids: [1419 1422]
    )
    (FuncDef
      name: printInfo
      body: 
        (BraceGroup
          children: [
            (C {(echo)} {(DQ ('==================================='))})
            (C {(echo)})
            (C {(echo)} {($ VSub_Name '$name') (Lit_Other ':')} {($ VSub_Name '$type')})
            (C {(echo)} {($ VSub_Name '$wiki')})
            (C {(echo)})
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobNEqual
                              left: {($ VSub_Name '$youtube')}
                              right: {(DQ (None))}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Sentence
                      child: (C {(echo)} {($ VSub_Name '$youtube')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [16777215 1633]
                )
              ]
              spids: [16777215 1639]
            )
            (C {(echo)} {(DQ ('==================================='))})
          ]
          spids: [1590]
        )
      spids: [1586 1589]
    )
    (FuncDef
      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'))})
          ]
          spids: [1656]
        )
      spids: [1652 1655]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: (BoolBinary op_id:BoolBinary_GlobDEqual left:{($ VSub_Name '$apiKey')} right:{(DQ )})
                )
              terminator: <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'
                  )
                )
              }
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 1772]
        )
      ]
      spids: [16777215 1807]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [(C {(getConfiguredPython)}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [(C {(getConfiguredClient)}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [(C {(checkInternet)}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})]
    )
    (WhileUntil
      keyword: <KW_While while>
      cond: [(Sentence child:(C {(getopts)} {(DQ (uvhis))} {(opt)}) terminator:<Op_Semi ';'>)]
      body: 
        (DoGroup
          children: [
            (Case
              to_match: {($ VSub_Name '$opt')}
              arms: [
                (case_arm
                  pat_list: [{(EscapedLiteralPart token:<Lit_EscapedChar '\\?'>)}]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('Invalid option: -') ($ VSub_Name '$OPTARG'))}]
                      redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
                    )
                    (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
                  ]
                  spids: [1856 1857 1876 16777215]
                )
                (case_arm
                  pat_list: [{(h)}]
                  action: [(C {(usage)}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})]
                  spids: [1879 1880 1891 16777215]
                )
                (case_arm
                  pat_list: [{(v)}]
                  action: [
                    (C {(echo)} {(DQ ('Version ') ($ VSub_Name '$currentVersion'))})
                    (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
                  ]
                  spids: [1894 1895 1911 16777215]
                )
                (case_arm
                  pat_list: [{(u)}]
                  action: [(C {(update)}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})]
                  spids: [1914 1915 1926 16777215]
                )
                (case_arm
                  pat_list: [{(i)}]
                  action: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {($ VSub_Name '$search')}
                                      right: {(DQ (0))}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:info)
                                  op: Equal
                                  rhs: {(DQ (1))}
                                  spids: [1950]
                                )
                              ]
                              spids: [1950]
                            )
                          ]
                          spids: [16777215 1947]
                        )
                      ]
                      else_action: [
                        (C {(echo)} 
                          {
                            (DQ 
                              (
'Error: the options -i and -s are mutually exclusive (-s already uses -i)'
                              )
                            )
                          }
                        )
                        (ControlFlow
                          token: <ControlFlow_Exit exit>
                          arg_word: {(1)}
                        )
                      ]
                      spids: [1956 1971]
                    )
                  ]
                  spids: [1929 1930 1974 16777215]
                )
                (case_arm
                  pat_list: [{(s)}]
                  action: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobNEqual
                                      left: {($ VSub_Name '$info')}
                                      right: {(DQ (1))}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:search)
                                  op: Equal
                                  rhs: {(DQ (1))}
                                  spids: [1998]
                                )
                              ]
                              spids: [1998]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:info)
                                  op: Equal
                                  rhs: {(DQ (1))}
                                  spids: [2004]
                                )
                              ]
                              spids: [2004]
                            )
                          ]
                          spids: [16777215 1995]
                        )
                      ]
                      else_action: [
                        (C {(echo)} 
                          {
                            (DQ 
                              (
'Error: the options -i and -s are mutually exclusive (-s already uses -i)'
                              )
                            )
                          }
                        )
                        (ControlFlow
                          token: <ControlFlow_Exit exit>
                          arg_word: {(1)}
                        )
                      ]
                      spids: [2010 2025]
                    )
                  ]
                  spids: [1977 1978 2028 16777215]
                )
                (case_arm
                  pat_list: [{(Lit_Other ':')}]
                  action: [
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {(DQ ('Option -') ($ VSub_Name '$OPTARG') (' requires an argument.'))}
                      ]
                      redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
                    )
                    (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
                  ]
                  spids: [2031 2032 2052 16777215]
                )
              ]
              spids: [1849 1853 2055]
            )
          ]
          spids: [1846 2057]
        )
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: (BoolBinary op_id:BoolBinary_GlobDEqual left:{($ VSub_Pound '$#')} right:{(0)})
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(usage)})]
          spids: [16777215 2073]
        )
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: 
                    (BoolBinary
                      op_id: BoolBinary_GlobDEqual
                      left: {($ VSub_Number '$1')}
                      right: {(DQ (update))}
                    )
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(update)})]
          spids: [2078 2092]
        )
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: 
                    (BoolBinary
                      op_id: BoolBinary_GlobDEqual
                      left: {($ VSub_Number '$1')}
                      right: {(DQ (help))}
                    )
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(usage)})]
          spids: [2097 2111]
        )
      ]
      else_action: [
        (If
          arms: [
            (if_arm
              cond: [
                (Sentence
                  child: 
                    (DBracket
                      expr: 
                        (BoolBinary
                          op_id: BoolBinary_GlobDEqual
                          left: {($ VSub_Name '$search')}
                          right: {(DQ (0))}
                        )
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              action: [
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$info')}
                                  right: {(DQ (0))}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (AndOr
                          ops: [Op_DPipe]
                          children: [
                            (C {(getSimilar)} {(DQ ($ VSub_At '$@'))})
                            (ControlFlow
                              token: <ControlFlow_Exit exit>
                              arg_word: {(1)}
                            )
                          ]
                        )
                        (C {(printResults)})
                      ]
                      spids: [16777215 2150]
                    )
                  ]
                  else_action: [
                    (AndOr
                      ops: [Op_DPipe]
                      children: [
                        (C {(getSimilar)} 
                          {
                            (DQ 
                              (BracedVarSub
                                token: <VSub_At '@'>
                                suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)}))
                                spids: [2178 2182]
                              )
                            )
                          }
                        )
                        (ControlFlow
                          token: <ControlFlow_Exit exit>
                          arg_word: {(1)}
                        )
                      ]
                    )
                    (C {(printResults)})
                  ]
                  spids: [2172 2195]
                )
              ]
              spids: [16777215 2133]
            )
          ]
          else_action: [
            (AndOr
              ops: [Op_DPipe]
              children: [
                (C {(getInfo)} 
                  {
                    (DQ 
                      (BracedVarSub
                        token: <VSub_At '@'>
                        suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)}))
                        spids: [2204 2208]
                      )
                    )
                  }
                )
                (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
              ]
            )
            (C {(printInfo)})
          ]
          spids: [2198 2224]
        )
      ]
      spids: [2116 2226]
    )
  ]
)