Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge TL and Search #39

Open
shokai opened this issue May 18, 2013 · 1 comment
Open

merge TL and Search #39

shokai opened this issue May 18, 2013 · 1 comment
Labels

Comments

@shokai
Copy link
Owner

shokai commented May 18, 2013

% tw -search="shokai.org" @shokai
@shokai
Copy link
Owner Author

shokai commented May 18, 2013

これすごいめんどくさいな・・

このへんの処理の先にcmdsを実行してるのを変えないとどうしょうもない

      regist_cmds

      cmds.each do |name, cmd|
        next unless @parser[name]
        cmd.call @parser[name], @parser
      end

      auth
      if @parser.argv.size < 1
        Render.display client.mentions, @parser[:format]
      elsif all_requests?(@parser.argv)
        Render.display Parallel.map(@parser.argv, :in_threads => @parser.argv.size){|arg|
          if user = username?(arg)
            res = client.user_timeline user
          elsif (user, list =listname?(arg)) != false
            res = client.list_timeline(user, list)
          end
          res
        }, @parser[:format]
      else
        message = @parser.argv.join(' ')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant