Sha256: 6fa1e82e02cb9aea3c3931861a49cdeec7d34767a9507d0d6f353df579fc28d8
Contents?: true
Size: 1.15 KB
Versions: 6
Compression:
Stored size: 1.15 KB
Contents
# encoding: utf-8 module GithubCLI class Commands::Watching < Command namespace :watch desc 'watchers <user> <repo>', 'Lists repo watchers' def watchers(user, repo) Watching.watchers user, repo, options[:params], options[:format] end desc 'watched', 'Lists repos being watched by a user' method_option :user, :type => :string, :aliases => ["-u"], :desc => 'Watch repositories for <user>' def watched(user, repo, id) if options[:user] options[:params]['user'] = options[:user] end Watching.watched options[:params], options[:format] end desc 'watching <user> <repo>', 'Check if you are watching a repository' def watching(user, repo) Watching.watching? user, repo, options[:params], options[:format] end desc 'start <user> <repo>', 'Watch a repository' def start(user, repo) Watching.start_watching user, repo, options[:params], options[:format] end desc 'stop <user> <repo>', 'Stop watching a repository' def stop(user, repo) Watching.stop_watching user, repo, options[:params], options[:format] end end # Watching end # GithubCLI
Version data entries
6 entries across 6 versions & 1 rubygems