(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 prefix:"") (/.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: (C {(command)} {(-v)} {(curl)})
                      terminator: <Op_Amp "&">
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          redirects: [
                            (Redir
                              op_id: Redir_Great
                              fd: -1
                              arg_word: {(/dev/null)}
                              spids: [67]
                            )
                          ]
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (curl))}
                          spids: [75]
                        )
                      ]
                      spids: [75]
                    )
                  ]
                  spids: [-1 72]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(command)} {(-v)} {(wget)})
                      terminator: <Op_Amp "&">
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          redirects: [
                            (Redir
                              op_id: Redir_Great
                              fd: -1
                              arg_word: {(/dev/null)}
                              spids: [90]
                            )
                          ]
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (wget))}
                          spids: [98]
                        )
                      ]
                      spids: [98]
                    )
                  ]
                  spids: [81 95]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(command)} {(-v)} {(fetch)})
                      terminator: <Op_Amp "&">
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          redirects: [
                            (Redir
                              op_id: Redir_Great
                              fd: -1
                              arg_word: {(/dev/null)}
                              spids: [113]
                            )
                          ]
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (fetch))}
                          spids: [121]
                        )
                      ]
                      spids: [121]
                    )
                  ]
                  spids: [104 118]
                )
              ]
              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: [127 142]
            )
          ]
          spids: [55]
        )
      spids: [51 54]
    )
    (FuncDef
      name: getConfiguredPython
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(command)} {(-v)} {(python2)})
                      terminator: <Op_Amp "&">
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          redirects: [
                            (Redir
                              op_id: Redir_Great
                              fd: -1
                              arg_word: {(/dev/null)}
                              spids: [163]
                            )
                          ]
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredPython)
                          op: Equal
                          rhs: {(DQ (python2))}
                          spids: [171]
                        )
                      ]
                      spids: [171]
                    )
                  ]
                  spids: [-1 168]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(command)} {(-v)} {(python)})
                      terminator: <Op_Amp "&">
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          redirects: [
                            (Redir
                              op_id: Redir_Great
                              fd: -1
                              arg_word: {(/dev/null)}
                              spids: [186]
                            )
                          ]
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredPython)
                          op: Equal
                          rhs: {(DQ (python))}
                          spids: [194]
                        )
                      ]
                      spids: [194]
                    )
                  ]
                  spids: [177 191]
                )
              ]
              else_action: [
                (C {(echo)} {(DQ ("Error: This tool requires python 2 to be installed."))})
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
              ]
              spids: [200 215]
            )
          ]
          spids: [151]
        )
      spids: [147 150]
    )
    (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: [237 238 245 -1]
                )
                (case_arm
                  pat_list: [{(python)}]
                  action: [(C {(python)} {(DQ ($ VSub_At "$@"))})]
                  spids: [248 249 256 -1]
                )
              ]
              spids: [228 234 259]
            )
          ]
          spids: [225]
        )
      spids: [221 224]
    )
    (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: [283 284 297 -1]
                )
                (case_arm
                  pat_list: [{(wget)}]
                  action: [(C {(wget)} {(-qO-)} {(DQ ($ VSub_At "$@"))})]
                  spids: [300 301 310 -1]
                )
                (case_arm
                  pat_list: [{(fetch)}]
                  action: [(C {(fetch)} {(-o)} {(DQ (...))})]
                  spids: [313 314 323 -1]
                )
              ]
              spids: [274 280 326]
            )
          ]
          spids: [271]
        )
      spids: [267 270]
    )
    (FuncDef
      name: checkInternet
      body: 
        (BraceGroup
          children: [
            (Pipeline
              children: [
                (C {(echo)} {(-e)} 
                  {
                    (DQ ("GET http://google.com HTTP/1.0") 
                      (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">)
                    )
                  }
                )
                (SimpleCommand
                  words: [{(nc)} {(google.com)} {(80)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: -1
                      arg_word: {(/dev/null)}
                      spids: [357]
                    )
                    (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[361])
                  ]
                )
              ]
              negated: False
            )
            (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: [-1 381]
                )
              ]
              else_action: [
                (SimpleCommand
                  words: [{(echo)} {(DQ ("Error: no active internet connection"))}]
                  redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[401])]
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
              ]
              spids: [392 413]
            )
          ]
          spids: [336]
        )
      spids: [332 335]
    )
    (FuncDef
      name: update
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:repositoryName)
                  op: Equal
                  rhs: {(DQ (Bash-Snippets))}
                  spids: [437]
                )
              ]
              spids: [437]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:githubUserName)
                  op: Equal
                  rhs: {(DQ (alexanderepstein))}
                  spids: [446]
                )
              ]
              spids: [446]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:nameOfInstallFile)
                  op: Equal
                  rhs: {(DQ (install.sh))}
                  spids: [455]
                )
              ]
              spids: [455]
            )
            (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: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [465 501]
                      )
                    }
                  spids: [464]
                )
              ]
              spids: [464]
            )
            (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_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[557])]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [-1 548]
                )
                (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_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[588])]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [566 579]
                )
              ]
              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
                                  children: [
                                    (C {(cd)} {(TildeSubPart prefix:"")})
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: (C {(echo)} {(SQ <"Update Failed">)})
                                          terminator: <Op_Semi ";">
                                        )
                                        (Sentence
                                          child: (C {(exit)} {(1)})
                                          terminator: <Op_Semi ";">
                                        )
                                      ]
                                      spids: [685]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (Sentence
                                          child: 
                                            (DBracket
                                              expr: 
                                                (BoolUnary
                                                  op_id: BoolUnary_d
                                                  child: 
                                                    {(Lit_Tilde "~") (/) 
                                                      ($ VSub_Name "$repositoryName")
                                                    }
                                                )
                                            )
                                          terminator: <Op_Semi ";">
                                        )
                                      ]
                                      action: [
                                        (Sentence
                                          child: 
                                            (AndOr
                                              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: (C {(exit)} {(1)})
                                                      terminator: <Op_Semi ";">
                                                    )
                                                  ]
                                                  spids: [729]
                                                )
                                              ]
                                              op_id: Op_DPipe
                                            )
                                          terminator: <Op_Semi ";">
                                        )
                                      ]
                                      spids: [-1 717]
                                    )
                                  ]
                                  spids: [-1 747]
                                )
                                (AndOr
                                  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: (C {(exit)} {(1)})
                                          terminator: <Op_Semi ";">
                                        )
                                      ]
                                      spids: [763]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (AndOr
                                  children: [
                                    (C {(cd)} {($ VSub_Name "$repositoryName")})
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: (C {(echo)} {(SQ <"Update Failed">)})
                                          terminator: <Op_Semi ";">
                                        )
                                        (Sentence
                                          child: (C {(exit)} {(1)})
                                          terminator: <Op_Semi ";">
                                        )
                                      ]
                                      spids: [787]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (AndOr
                                  children: [
                                    (SimpleCommand
                                      words: [
                                        {(git)}
                                        {(checkout)}
                                        {(DQ (v) ($ VSub_Name "$latestVersion"))}
                                      ]
                                      redirects: [
                                        (Redir
                                          op_id: Redir_Great
                                          fd: 2
                                          arg_word: {(/dev/null)}
                                          spids: [814]
                                        )
                                      ]
                                    )
                                    (AndOr
                                      children: [
                                        (SimpleCommand
                                          words: [
                                            {(git)}
                                            {(checkout)}
                                            {(DQ ($ VSub_Name "$latestVersion"))}
                                          ]
                                          redirects: [
                                            (Redir
                                              op_id: Redir_Great
                                              fd: 2
                                              arg_word: {(/dev/null)}
                                              spids: [828]
                                            )
                                          ]
                                        )
                                        (C {(echo)} 
                                          {
                                            (DQ 
                                              (
"Couldn't git checkout to stable release, updating to latest commit."
                                              )
                                            )
                                          }
                                        )
                                      ]
                                      op_id: Op_DPipe
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (C {(chmod)} {(a) (Lit_Other "+") (x)} {(install.sh)})
                                (AndOr
                                  children: [
                                    (C {(./) ($ VSub_Name "$nameOfInstallFile")} {(DQ (update))})
                                    (C {(exit)} {(1)})
                                  ]
                                  op_id: Op_DPipe
                                )
                                (C {(cd)} {(..)})
                                (AndOr
                                  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: (C {(exit)} {(1)})
                                          terminator: <Op_Semi ";">
                                        )
                                      ]
                                      spids: [882]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                              ]
                              spids: [-1 676]
                            )
                          ]
                          else_action: [(C {(exit)} {(1)})]
                          spids: [901 909]
                        )
                      ]
                      spids: [-1 617]
                    )
                  ]
                  else_action: [
                    (C {(echo)} 
                      {(DQ ($ VSub_Name "$repositoryName") (" is already the latest version"))}
                    )
                  ]
                  spids: [912 923]
                )
              ]
              spids: [597 926]
            )
          ]
          spids: [422]
        )
      spids: [418 421]
    )
    (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: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [952 970]
                      )
                    }
                  spids: [951]
                )
              ]
              spids: [951]
            )
            (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: [974 985]
                      )
                    }
                  spids: [973]
                )
              ]
              spids: [973]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:nameOne)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (AndOr
                                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_id: Redir_Great
                                            fd: 2
                                            arg_word: {(/dev/null)}
                                            spids: [1008]
                                          )
                                        ]
                                      )
                                    ]
                                    negated: False
                                  )
                                  (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: [1014]
                                  )
                                ]
                                op_id: Op_DPipe
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [993 1030]
                      )
                    }
                  spids: [992]
                )
              ]
              spids: [992]
            )
            (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_id: Redir_Great
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                        spids: [1049]
                                      )
                                    ]
                                  )
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [1034 1052]
                      )
                    }
                  spids: [1033]
                )
              ]
              spids: [1033]
            )
            (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_id: Redir_Great
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                        spids: [1071]
                                      )
                                    ]
                                  )
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [1056 1074]
                      )
                    }
                  spids: [1055]
                )
              ]
              spids: [1055]
            )
            (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_id: Redir_Great
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                        spids: [1093]
                                      )
                                    ]
                                  )
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [1078 1096]
                      )
                    }
                  spids: [1077]
                )
              ]
              spids: [1077]
            )
            (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_id: Redir_Great
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                        spids: [1115]
                                      )
                                    ]
                                  )
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [1100 1118]
                      )
                    }
                  spids: [1099]
                )
              ]
              spids: [1099]
            )
            (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_id: Redir_Great
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                        spids: [1137]
                                      )
                                    ]
                                  )
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [1122 1140]
                      )
                    }
                  spids: [1121]
                )
              ]
              spids: [1121]
            )
            (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_id: Redir_Great
                                                fd: 2
                                                arg_word: {(/dev/null)}
                                                spids: [1179]
                                              )
                                            ]
                                          )
                                        ]
                                        negated: False
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub "$(">
                                spids: [1164 1182]
                              )
                            }
                          spids: [1163]
                        )
                      ]
                      spids: [1163]
                    )
                    (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_id: Redir_Great
                                                fd: 2
                                                arg_word: {(/dev/null)}
                                                spids: [1201]
                                              )
                                            ]
                                          )
                                        ]
                                        negated: False
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub "$(">
                                spids: [1186 1204]
                              )
                            }
                          spids: [1185]
                        )
                      ]
                      spids: [1185]
                    )
                    (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_id: Redir_Great
                                                fd: 2
                                                arg_word: {(/dev/null)}
                                                spids: [1223]
                                              )
                                            ]
                                          )
                                        ]
                                        negated: False
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub "$(">
                                spids: [1208 1226]
                              )
                            }
                          spids: [1207]
                        )
                      ]
                      spids: [1207]
                    )
                    (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_id: Redir_Great
                                                fd: 2
                                                arg_word: {(/dev/null)}
                                                spids: [1245]
                                              )
                                            ]
                                          )
                                        ]
                                        negated: False
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub "$(">
                                spids: [1230 1248]
                              )
                            }
                          spids: [1229]
                        )
                      ]
                      spids: [1229]
                    )
                  ]
                  spids: [-1 1157]
                )
              ]
              spids: [-1 1251]
            )
          ]
          spids: [939]
        )
      spids: [935 938]
    )
    (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: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [1276 1294]
                      )
                    }
                  spids: [1275]
                )
              ]
              spids: [1275]
            )
            (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: [1298 1309]
                      )
                    }
                  spids: [1297]
                )
              ]
              spids: [1297]
            )
            (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: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [1313 1327]
                      )
                    }
                  spids: [1312]
                )
              ]
              spids: [1312]
            )
            (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: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [1331 1345]
                      )
                    }
                  spids: [1330]
                )
              ]
              spids: [1330]
            )
            (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: False
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub "$(">
                                spids: [1367 1381]
                              )
                            }
                          spids: [1366]
                        )
                      ]
                      spids: [1366]
                    )
                    (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: False
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub "$(">
                                spids: [1385 1399]
                              )
                            }
                          spids: [1384]
                        )
                      ]
                      spids: [1384]
                    )
                  ]
                  spids: [-1 1363]
                )
              ]
              else_action: [
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:wiki)
                      op: Equal
                      rhs: {(DQ (None))}
                      spids: [1405]
                    )
                  ]
                  spids: [1405]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:youtube)
                      op: Equal
                      rhs: {(DQ (None))}
                      spids: [1411]
                    )
                  ]
                  spids: [1411]
                )
              ]
              spids: [1402 1417]
            )
          ]
          spids: [1263]
        )
      spids: [1259 1262]
    )
    (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: [-1 1524]
                        )
                      ]
                      spids: [-1 1530]
                    )
                    (C {(echo)})
                    (C {(echo)} {(DQ ("==================================="))})
                  ]
                  spids: [-1 1443]
                )
              ]
              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: [1543 1584]
            )
          ]
          spids: [1426]
        )
      spids: [1422 1425]
    )
    (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: [-1 1636]
                )
              ]
              spids: [-1 1642]
            )
            (C {(echo)} {(DQ ("==================================="))})
          ]
          spids: [1593]
        )
      spids: [1589 1592]
    )
    (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: [1659]
        )
      spids: [1655 1658]
    )
    (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"
                  )
                )
              }
            )
            (C {(exit)} {(1)})
          ]
          spids: [-1 1775]
        )
      ]
      spids: [-1 1810]
    )
    (AndOr children:[(C {(getConfiguredPython)})(C {(exit)} {(1)})] op_id:Op_DPipe)
    (AndOr children:[(C {(getConfiguredClient)})(C {(exit)} {(1)})] op_id:Op_DPipe)
    (AndOr children:[(C {(checkInternet)})(C {(exit)} {(1)})] op_id:Op_DPipe)
    (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_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[1870])]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [1859 1860 1879 -1]
                )
                (case_arm
                  pat_list: [{(h)}]
                  action: [(C {(usage)}) (C {(exit)} {(0)})]
                  spids: [1882 1883 1894 -1]
                )
                (case_arm
                  pat_list: [{(v)}]
                  action: [
                    (C {(echo)} {(DQ ("Version ") ($ VSub_Name "$currentVersion"))})
                    (C {(exit)} {(0)})
                  ]
                  spids: [1897 1898 1914 -1]
                )
                (case_arm
                  pat_list: [{(u)}]
                  action: [(C {(update)}) (C {(exit)} {(0)})]
                  spids: [1917 1918 1929 -1]
                )
                (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: [1953]
                                )
                              ]
                              spids: [1953]
                            )
                          ]
                          spids: [-1 1950]
                        )
                      ]
                      else_action: [
                        (C {(echo)} 
                          {
                            (DQ 
                              (
"Error: the options -i and -s are mutually exclusive (-s already uses -i)"
                              )
                            )
                          }
                        )
                        (C {(exit)} {(1)})
                      ]
                      spids: [1959 1974]
                    )
                  ]
                  spids: [1932 1933 1977 -1]
                )
                (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: [2001]
                                )
                              ]
                              spids: [2001]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:info)
                                  op: Equal
                                  rhs: {(DQ (1))}
                                  spids: [2007]
                                )
                              ]
                              spids: [2007]
                            )
                          ]
                          spids: [-1 1998]
                        )
                      ]
                      else_action: [
                        (C {(echo)} 
                          {
                            (DQ 
                              (
"Error: the options -i and -s are mutually exclusive (-s already uses -i)"
                              )
                            )
                          }
                        )
                        (C {(exit)} {(1)})
                      ]
                      spids: [2013 2028]
                    )
                  ]
                  spids: [1980 1981 2031 -1]
                )
                (case_arm
                  pat_list: [{(Lit_Other ":")}]
                  action: [
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {(DQ ("Option -") ($ VSub_Name "$OPTARG") (" requires an argument."))}
                      ]
                      redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[2046])]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [2034 2035 2055 -1]
                )
              ]
              spids: [1852 1856 2058]
            )
          ]
          spids: [1849 2060]
        )
    )
    (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: [-1 2076]
        )
        (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: [2081 2095]
        )
        (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: [2100 2114]
        )
      ]
      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
                          children: [(C {(getSimilar)} {(DQ ($ VSub_At "$@"))}) (C {(exit)} {(1)})]
                          op_id: Op_DPipe
                        )
                        (C {(printResults)})
                      ]
                      spids: [-1 2153]
                    )
                  ]
                  else_action: [
                    (AndOr
                      children: [
                        (C {(getSimilar)} 
                          {
                            (DQ 
                              (BracedVarSub
                                token: <VSub_At "@">
                                suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)}))
                                spids: [2181 2185]
                              )
                            )
                          }
                        )
                        (C {(exit)} {(1)})
                      ]
                      op_id: Op_DPipe
                    )
                    (C {(printResults)})
                  ]
                  spids: [2175 2198]
                )
              ]
              spids: [-1 2136]
            )
          ]
          else_action: [
            (AndOr
              children: [
                (C {(getInfo)} 
                  {
                    (DQ 
                      (BracedVarSub
                        token: <VSub_At "@">
                        suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)}))
                        spids: [2207 2211]
                      )
                    )
                  }
                )
                (C {(exit)} {(1)})
              ]
              op_id: Op_DPipe
            )
            (C {(printInfo)})
          ]
          spids: [2201 2227]
        )
      ]
      spids: [2119 2229]
    )
  ]
)