github_cli 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. data/.travis.yml +3 -0
  2. data/CHANGELOG.md +7 -0
  3. data/Gemfile.lock +4 -4
  4. data/README.md +8 -1
  5. data/features/blob.feature +8 -0
  6. data/features/collaborator.feature +10 -0
  7. data/features/commit.feature +8 -0
  8. data/features/content.feature +9 -0
  9. data/features/gist.feature +15 -0
  10. data/features/pull_request.feature +14 -0
  11. data/features/search.feature +7 -30
  12. data/features/search_commands.feature +33 -0
  13. data/features/watching.feature +11 -0
  14. data/lib/github_cli/apis.rb +2 -0
  15. data/lib/github_cli/apis/content.rb +28 -0
  16. data/lib/github_cli/apis/search.rb +35 -0
  17. data/lib/github_cli/cli.rb +9 -5
  18. data/lib/github_cli/command.rb +2 -1
  19. data/lib/github_cli/commands.rb +2 -0
  20. data/lib/github_cli/commands/blobs.rb +0 -4
  21. data/lib/github_cli/commands/collaborators.rb +0 -8
  22. data/lib/github_cli/commands/commits.rb +0 -4
  23. data/lib/github_cli/commands/contents.rb +49 -0
  24. data/lib/github_cli/commands/downloads.rb +0 -8
  25. data/lib/github_cli/commands/emails.rb +0 -6
  26. data/lib/github_cli/commands/events.rb +0 -16
  27. data/lib/github_cli/commands/followers.rb +0 -10
  28. data/lib/github_cli/commands/forks.rb +0 -4
  29. data/lib/github_cli/commands/gists.rb +0 -18
  30. data/lib/github_cli/commands/hooks.rb +0 -10
  31. data/lib/github_cli/commands/issues.rb +0 -10
  32. data/lib/github_cli/commands/keys.rb +0 -10
  33. data/lib/github_cli/commands/labels.rb +0 -20
  34. data/lib/github_cli/commands/members.rb +0 -10
  35. data/lib/github_cli/commands/milestones.rb +0 -10
  36. data/lib/github_cli/commands/organizations.rb +0 -6
  37. data/lib/github_cli/commands/pull_requests.rb +0 -16
  38. data/lib/github_cli/commands/references.rb +0 -10
  39. data/lib/github_cli/commands/repositories.rb +0 -18
  40. data/lib/github_cli/commands/search.rb +39 -0
  41. data/lib/github_cli/commands/tags.rb +0 -4
  42. data/lib/github_cli/commands/teams.rb +0 -26
  43. data/lib/github_cli/commands/trees.rb +0 -4
  44. data/lib/github_cli/commands/users.rb +0 -4
  45. data/lib/github_cli/commands/watching.rb +0 -10
  46. data/lib/github_cli/subcommands.rb +6 -0
  47. data/lib/github_cli/version.rb +1 -1
  48. metadata +32 -12
@@ -18,8 +18,6 @@ module GithubCLI
18
18
  DESC
19
19
  method_option :public, :type => :boolean, :default => false,
20
20
  :desc => 'List public members'
21
- method_option :params, :type => :hash, :default => {},
22
- :desc => 'Additional request parameters e.i per_page:100'
23
21
  def list(org)
24
22
  if options[:public]
25
23
  Member.all_public org, options[:params], options[:format]
@@ -31,8 +29,6 @@ module GithubCLI
31
29
  desc 'member <org> <user>', 'Checks if user is a member of an organization'
32
30
  method_option :public, :type => :boolean, :default => false,
33
31
  :desc => 'Get if a user is a public member of an organization'
34
- method_option :params, :type => :hash, :default => {},
35
- :desc => 'Additional request parameters e.i per_page:100'
36
32
  def member(org, user)
37
33
  if options[:public]
38
34
  Member.public_member? org, user, options[:params], options[:format]
@@ -46,22 +42,16 @@ module GithubCLI
46
42
  Removing a user from this list will remove them from all teams and they
47
43
  will no longer have any access to the organization’s repositories.
48
44
  DESC
49
- method_option :params, :type => :hash, :default => {},
50
- :desc => 'Additional request parameters e.i per_page:100'
51
45
  def delete(org, user)
52
46
  Member.delete org, user, options[:params], options[:format]
53
47
  end
54
48
 
55
49
  desc 'publicize <org> <user>', "Publicize a user’s membership"
56
- method_option :params, :type => :hash, :default => {},
57
- :desc => 'Additional request parameters e.i per_page:100'
58
50
  def publicize(org, user)
59
51
  Member.publicize org, user, options[:params], options[:format]
60
52
  end
61
53
 
62
54
  desc 'conceal <org> <user>', "Conceal a user’s membership"
63
- method_option :params, :type => :hash, :default => {},
64
- :desc => 'Additional request parameters e.i per_page:100'
65
55
  def conceal(org, user)
66
56
  Member.conceal org, user, options[:params], options[:format]
67
57
  end
@@ -13,15 +13,11 @@ module GithubCLI
13
13
  sort - due_date, completeness, default: due_date\n
14
14
  direction - asc, desc, default: desc\n
15
15
  DESC
16
- method_option :params, :type => :hash, :default => {},
17
- :desc => 'Additional request parameters e.i per_page:100'
18
16
  def list(user, repo)
19
17
  Milestone.all user, repo, options[:params], options[:format]
20
18
  end
21
19
 
22
20
  desc 'get <user> <repo> <id>', 'Get a single milestone'
23
- method_option :params, :type => :hash, :default => {},
24
- :desc => 'Additional request parameters e.i per_page:100'
25
21
  def get(user, repo, id)
26
22
  Milestone.get user, repo, id, options[:params], options[:format]
27
23
  end
@@ -35,8 +31,6 @@ module GithubCLI
35
31
  description - Optional string\n
36
32
  due_on - Optional string - ISO 8601 time\n
37
33
  DESC
38
- method_option :params, :type => :hash, :default => {},
39
- :desc => 'Additonal request parameters e.i per_page:100'
40
34
  def create(user, repo)
41
35
  Milestone.create user, repo, options[:params], options[:format]
42
36
  end
@@ -50,15 +44,11 @@ module GithubCLI
50
44
  description - Optional string\n
51
45
  due_on - Optional string - ISO 8601 time\n
52
46
  DESC
53
- method_option :params, :type => :hash, :default => {},
54
- :desc => 'Additonal request parameters e.i per_page:100'
55
47
  def upload(resource, filename)
56
48
  Download.upload resource, filename, options[:format]
57
49
  end
58
50
 
59
51
  desc 'delete <user> <repo> <id>', 'Delete a milestone'
60
- method_option :params, :type => :hash, :default => {},
61
- :desc => 'Additonal request parameters e.i per_page:100'
62
52
  def delete(user, repo, id)
63
53
  Milestone.delete user, repo, id, options[:params], options[:format]
64
54
  end
@@ -9,22 +9,16 @@ module GithubCLI
9
9
  method_option :user, :type => :string, :aliases => ["-u"],
10
10
  :desc => 'List all public organizations for a user',
11
11
  :banner => '<user>'
12
- method_option :params, :type => :hash, :default => {},
13
- :desc => 'Additional request parameters e.i per_page:100'
14
12
  def list
15
13
  Organization.list options[:user], options[:params], options[:format]
16
14
  end
17
15
 
18
16
  desc 'get <org>', 'Get properties for a single organization'
19
- method_option :params, :type => :hash, :default => {},
20
- :desc => 'Additional request parameters e.i per_page:100'
21
17
  def get(org)
22
18
  Organization.get org, options[:params], options[:format]
23
19
  end
24
20
 
25
21
  desc 'edit <org>', 'Edit organization'
26
- method_option :params, :type => :hash, :default => {},
27
- :desc => 'Additonal request parameters e.i per_page:100'
28
22
  long_desc <<-DESC
29
23
  Parameters
30
24
 
@@ -6,57 +6,41 @@ module GithubCLI
6
6
  namespace :pull
7
7
 
8
8
  desc 'get <user> <repo> <number>', 'Get a Pull Request'
9
- method_option :params, :type => :hash, :default => {},
10
- :desc => 'Additonal request parameters e.i per_page:100'
11
9
  def get(user, repo, number)
12
10
  PullRequest.get user, repo, number, options[:params], options[:format]
13
11
  end
14
12
 
15
13
  desc 'list <user> <repo>', 'List all Pull Requests'
16
- method_option :params, :type => :hash, :default => {},
17
- :desc => 'Additonal request parameters e.i per_page:100'
18
14
  def list(user, repo)
19
15
  PullRequest.list user, repo, options[:params], options[:format]
20
16
  end
21
17
 
22
18
  desc 'create <user> <repo>', 'Create a new Pull Request'
23
- method_option :params, :type => :hash, :default => {},
24
- :desc => 'Additonal request parameters e.i per_page:100'
25
19
  def create(user, repo)
26
20
  PullRequest.create user, repo, options[:params], options[:format]
27
21
  end
28
22
 
29
23
  desc 'update <user> <repo> <number>', 'Update a Pull Request'
30
- method_option :params, :type => :hash, :default => {},
31
- :desc => 'Additonal request parameters e.i per_page:100'
32
24
  def update(user, repo, number)
33
25
  PullRequest.update user, repo, number, options[:params], options[:format]
34
26
  end
35
27
 
36
28
  desc 'commits <user> <repo> <number>', 'List commits on a Pull Request'
37
- method_option :params, :type => :hash, :default => {},
38
- :desc => 'Additonal request parameters e.i per_page:100'
39
29
  def commits(user, repo, number)
40
30
  PullRequest.commits user, repo, number, options[:params], options[:format]
41
31
  end
42
32
 
43
33
  desc 'files <user> <repo> <number>', 'List Pull Requests Files'
44
- method_option :params, :type => :hash, :default => {},
45
- :desc => 'Additonal request parameters e.i per_page:100'
46
34
  def files(user, repo, number)
47
35
  PullRequest.files user, repo, number, options[:params], options[:format]
48
36
  end
49
37
 
50
38
  desc 'merged <user> <repo> <number>', 'Get if a pull request has been merged'
51
- method_option :params, :type => :hash, :default => {},
52
- :desc => 'Additonal request parameters e.i per_page:100'
53
39
  def merged(user, repo, number)
54
40
  PullRequest.merged user, repo, number, options[:params], options[:format]
55
41
  end
56
42
 
57
43
  desc 'merge <user> <repo> <number>', 'Merge a pull request'
58
- method_option :params, :type => :hash, :default => {},
59
- :desc => 'Additonal request parameters e.i per_page:100'
60
44
  def merge(user, repo, number)
61
45
  PullRequest.merge user, repo, number, options[:params], options[:format]
62
46
  end
@@ -7,16 +7,12 @@ module GithubCLI
7
7
 
8
8
  desc 'list <user> <repo> <ref>', 'List all References'
9
9
  method_option :ref, :type => :string, :banner => 'branch reference'
10
- method_option :params, :type => :hash, :default => {},
11
- :desc => 'Additonal request parameters e.i per_page:100'
12
10
  def list(user, repo)
13
11
  ref = options[:ref] ? options[:ref] : nil
14
12
  Reference.list user, repo, ref, options[:params], options[:format]
15
13
  end
16
14
 
17
15
  desc 'get <user> <repo> <ref>', 'Get a Reference'
18
- method_option :params, :type => :hash, :default => {},
19
- :desc => 'Additonal request parameters e.i per_page:100'
20
16
  def get(user, repo, ref)
21
17
  Reference.get user, repo, ref, options[:params], options[:format]
22
18
  end
@@ -28,8 +24,6 @@ module GithubCLI
28
24
  ref - String of the name of the fully qualified reference (ie: refs/heads/master). If it doesn’t start with ‘refs’ and have at least two slashes, it will be rejected.\n
29
25
  sha - String of the SHA1 value to set this reference to
30
26
  DESC
31
- method_option :params, :type => :hash, :default => {},
32
- :desc => 'Additonal request parameters e.i per_page:100'
33
27
  def create(user, repo)
34
28
  Reference.create user, repo, options[:params], options[:format]
35
29
  end
@@ -41,15 +35,11 @@ module GithubCLI
41
35
  sha - String of the SHA1 value to set this reference to\n
42
36
  force - Boolean indicating whether to force the update or to make sure the update is a fast-forward update. The default is <tt>false</tt>, so leaving this out or setting it to false will make sure you’re not overwriting work.
43
37
  DESC
44
- method_option :params, :type => :hash, :default => {},
45
- :desc => 'Additonal request parameters e.i per_page:100'
46
38
  def update(user, repo, ref)
47
39
  Reference.update user, repo, ref, options[:params], options[:format]
48
40
  end
49
41
 
50
42
  desc 'delete <user> <repo> <ref>', 'Delete a Reference'
51
- method_option :params, :type => :hash, :default => {},
52
- :desc => 'Additonal request parameters e.i per_page:100'
53
43
  def delete(user, repo, ref)
54
44
  Reference.delete user, repo, ref, options[:params], options[:format]
55
45
  end
@@ -12,8 +12,6 @@ module GithubCLI
12
12
  method_option :user, :type => :string, :aliases => ["-u"],
13
13
  :desc => 'List repositories for <user>',
14
14
  :banner => '<user>'
15
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
16
- :desc => 'Additonal request parameters e.i per_page:100'
17
15
  def list
18
16
  if options[:org]
19
17
  options[:params]['org'] = options[:org]
@@ -24,8 +22,6 @@ module GithubCLI
24
22
  end
25
23
 
26
24
  desc 'get <user> <repo>', 'Get a repository'
27
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
28
- :desc => 'Additonal request parameters e.i per_page:100'
29
25
  def get(user, repo)
30
26
  Repository.get user, repo, options[:params], options[:format]
31
27
  end
@@ -49,8 +45,6 @@ module GithubCLI
49
45
  method_option :org, :type => :string, :aliases => ["-o"],
50
46
  :desc => 'Create repository in <organization>',
51
47
  :banner => '<organization>'
52
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
53
- :desc => 'Additonal request parameters e.i per_page:100'
54
48
  def create
55
49
  if options[:org]
56
50
  options[:params]['org'] = options[:org]
@@ -72,43 +66,31 @@ module GithubCLI
72
66
  has_wiki - Optional boolean - true to enable the wiki for this repository, false to disable it. Default is true \n
73
67
  has_downloads Optional boolean - true to enable downloads for this repository \n
74
68
  DESC
75
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
76
- :desc => 'Additonal request parameters e.i per_page:100'
77
69
  def edit(user, repo)
78
70
  Repository.edit user, repo, options[:params], options[:format]
79
71
  end
80
72
 
81
73
  desc 'branches <user> <repo>', 'List branches'
82
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
83
- :desc => 'Additonal request parameters e.i per_page:100'
84
74
  def branches(user, repo)
85
75
  Repository.branches user, repo, options[:params], options[:format]
86
76
  end
87
77
 
88
78
  desc 'contribs <user> <repo>', 'List contributors'
89
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
90
- :desc => 'Additonal request parameters e.i per_page:100'
91
79
  def contribs(user, repo)
92
80
  Repository.contributors user, repo, options[:params], options[:format]
93
81
  end
94
82
 
95
83
  desc 'languages <user> <repo>', 'Listing all languages'
96
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
97
- :desc => 'Additonal request parameters e.i per_page:100'
98
84
  def languages(user, repo)
99
85
  Repository.languages user, repo, options[:params], options[:format]
100
86
  end
101
87
 
102
88
  desc 'tags <user> <repo>', 'Listing all tags'
103
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
104
- :desc => 'Additonal request parameters e.i per_page:100'
105
89
  def tags(user, repo)
106
90
  Repository.tags user, repo, options[:params], options[:format]
107
91
  end
108
92
 
109
93
  desc 'teams <user> <repo>', 'Listing all teams'
110
- method_option :params, :type => :hash, :default => {}, :aliases => '-p',
111
- :desc => 'Additonal request parameters e.i per_page:100'
112
94
  def teams(user, repo)
113
95
  Repository.teams user, repo, options[:params], options[:format]
114
96
  end
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+
3
+ module GithubCLI
4
+ class Commands::Search < Command
5
+
6
+ namespace :search
7
+
8
+ desc 'issue <owner> <repo> <keyword>', 'Search issues'
9
+ long_desc <<-DESC
10
+ Search issues
11
+
12
+ Parameters
13
+
14
+ state - open or closed. \n
15
+ keyword - search term
16
+ DESC
17
+ method_option :state, :type => :string, :aliases => ["-s"],
18
+ :desc => 'Repository name'
19
+ def issue(owner, repo, keyword)
20
+ Search.issue owner, repo, keyword, options[:params].update(:state => options[:state]), options[:format]
21
+ end
22
+
23
+ desc 'repo <keyword>', 'Repository search'
24
+ def repo(keyword)
25
+ Search.repo options[:params].update(:keyword => keyword), options[:format]
26
+ end
27
+
28
+ desc 'user <keyword>', 'User search'
29
+ def user(keyword)
30
+ Search.user options[:params].update(:keyword => keyword), options[:format]
31
+ end
32
+
33
+ desc 'email <email>', 'Email search'
34
+ def email(email)
35
+ Search.email options[:params].update(:email => email), options[:format]
36
+ end
37
+
38
+ end # Search
39
+ end # GithubCLI
@@ -8,8 +8,6 @@ module GithubCLI
8
8
  desc 'get <user> <repo> <sha>', 'Get a Tag'
9
9
  method_option :recursive, :type => :boolean, :aliases => ["-r"],
10
10
  :desc => 'get a tree recursively'
11
- method_option :params, :type => :hash, :default => {},
12
- :desc => 'Additonal request parameters e.i per_page:100'
13
11
  def get(user, repo, sha)
14
12
  Tag.get user, repo, sha, options[:params], options[:format]
15
13
  end
@@ -32,8 +30,6 @@ module GithubCLI
32
30
  tagger.email - String of the email of the author of the tag \n
33
31
  tagger.date - Timestamp of when this object was tagged \n
34
32
  DESC
35
- method_option :params, :type => :hash, :default => {},
36
- :desc => 'Additonal request parameters e.i per_page:100'
37
33
  def create(user, repo)
38
34
  Tag.create user, repo, options[:params], options[:format]
39
35
  end
@@ -6,15 +6,11 @@ module GithubCLI
6
6
  namespace :team
7
7
 
8
8
  desc 'list <org>', "List teams"
9
- method_option :params, :type => :hash, :default => {},
10
- :desc => 'Additional request parameters e.i per_page:100'
11
9
  def list(org)
12
10
  Team.all org, options[:params], options[:format]
13
11
  end
14
12
 
15
13
  desc 'get <id>', "Get a team"
16
- method_option :params, :type => :hash, :default => {},
17
- :desc => 'Additional request parameters e.i per_page:100'
18
14
  def get(id)
19
15
  Team.get id, options[:params], options[:format]
20
16
  end
@@ -32,8 +28,6 @@ module GithubCLI
32
28
  * push - team members can pull and push, but not administor this repositores.\n
33
29
  * admin - team members can pull, push and administor these repositories.\n
34
30
  DESC
35
- method_option :params, :type => :hash, :default => {},
36
- :desc => 'Additional request parameters e.i per_page:100'
37
31
  def create(org)
38
32
  Team.create org, options[:params], options[:format]
39
33
  end
@@ -50,8 +44,6 @@ module GithubCLI
50
44
  * push - team members can pull and push, but not administor this repositores.\n
51
45
  * admin - team members can pull, push and administor these repositories.\n
52
46
  DESC
53
- method_option :params, :type => :hash, :default => {},
54
- :desc => 'Additional request parameters e.i per_page:100'
55
47
  def edit(id)
56
48
  Team.edit id, options[:params], options[:format]
57
49
  end
@@ -60,15 +52,11 @@ module GithubCLI
60
52
  long_desc <<-DESC
61
53
  In order to delete a team, the authenticated user must be an owner of the org that the team is associated with.
62
54
  DESC
63
- method_option :params, :type => :hash, :default => {},
64
- :desc => 'Additional request parameters e.i per_page:100'
65
55
  def delete(id)
66
56
  Team.delete id, options[:params], options[:format]
67
57
  end
68
58
 
69
59
  desc 'list_member <id>', "List team <id> members"
70
- method_option :params, :type => :hash, :default => {},
71
- :desc => 'Additional request parameters e.i per_page:100'
72
60
  def list_member(id)
73
61
  Team.all_member id, options[:params], options[:format]
74
62
  end
@@ -77,8 +65,6 @@ module GithubCLI
77
65
  long_desc <<-DESC
78
66
  In order to get if a user is a member of a team, the authenticated user must be a member of the team.
79
67
  DESC
80
- method_option :params, :type => :hash, :default => {},
81
- :desc => 'Additional request parameters e.i per_page:100'
82
68
  def member(id, user)
83
69
  Team.member id, user, options[:params], options[:format]
84
70
  end
@@ -87,8 +73,6 @@ module GithubCLI
87
73
  long_desc <<-DESC
88
74
  In order to add a user to a team, the authenticated user must have ‘admin’ permissions to the team or be an owner of the org that the team is associated with.
89
75
  DESC
90
- method_option :params, :type => :hash, :default => {},
91
- :desc => 'Additional request parameters e.i per_page:100'
92
76
  def add_member(id, user)
93
77
  Team.add_member id, user, options[:params], options[:format]
94
78
  end
@@ -100,22 +84,16 @@ module GithubCLI
100
84
  is associated with. NOTE: This does not delete the user, it just remove
101
85
  them from the team.
102
86
  DESC
103
- method_option :params, :type => :hash, :default => {},
104
- :desc => 'Additional request parameters e.i per_page:100'
105
87
  def remove_member(id, user)
106
88
  Team.remove_member id, user, options[:params], options[:format]
107
89
  end
108
90
 
109
91
  desc 'list_repo <id>', "List team <id> repositories"
110
- method_option :params, :type => :hash, :default => {},
111
- :desc => 'Additional request parameters e.i per_page:100'
112
92
  def list_repo(id)
113
93
  Team.all_repo id, options[:params], options[:format]
114
94
  end
115
95
 
116
96
  desc 'repo <id> <user> <repo>', 'Check if <repo> is managed by <id> team'
117
- method_option :params, :type => :hash, :default => {},
118
- :desc => 'Additional request parameters e.i per_page:100'
119
97
  def repo(id, user, repo)
120
98
  Team.repo id, user, repo, options[:params], options[:format]
121
99
  end
@@ -126,8 +104,6 @@ module GithubCLI
126
104
  of the org that the team is associated with. Also, the repo must be owned
127
105
  by the organization, or a direct for of a repo owned by the organization.
128
106
  DESC
129
- method_option :params, :type => :hash, :default => {},
130
- :desc => 'Additional request parameters e.i per_page:100'
131
107
  def add_repo(id, user, repo)
132
108
  Team.add_repo id, user, repo, options[:params], options[:format]
133
109
  end
@@ -138,8 +114,6 @@ module GithubCLI
138
114
  owner of the org that the team is associated with. NOTE: This does not
139
115
  delete the repo, it just removes it from the team.
140
116
  DESC
141
- method_option :params, :type => :hash, :default => {},
142
- :desc => 'Additional request parameters e.i per_page:100'
143
117
  def remove_repo(id, user, repo)
144
118
  Team.remove_repo id, user, repo, options[:params], options[:format]
145
119
  end
@@ -8,8 +8,6 @@ module GithubCLI
8
8
  desc 'get <user> <repo> <sha>', 'Get a Tree'
9
9
  method_option :recursive, :type => :boolean, :aliases => ["-r"],
10
10
  :desc => 'get a tree recursively'
11
- method_option :params, :type => :hash, :default => {},
12
- :desc => 'Additonal request parameters e.i per_page:100'
13
11
  def get(user, repo, sha)
14
12
  if options[:recursive]
15
13
  options[:params]['recursive'] = true
@@ -34,8 +32,6 @@ module GithubCLI
34
32
  tree.sha - String of SHA1 checksum ID of the object in the tree
35
33
  tree.content - String of content you want this file to have - GitHub will write this blob out and use the SHA for this entry. Use either this or tree.sha
36
34
  DESC
37
- method_option :params, :type => :hash, :default => {},
38
- :desc => 'Additonal request parameters e.i per_page:100'
39
35
  def create(user, repo)
40
36
  Tree.create user, repo, options[:params], options[:format]
41
37
  end