Skip to content

Commit

Permalink
feat(driver_details): allow specifying the branch
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Dec 9, 2022
1 parent 3e33fac commit 52189ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: placeos-core-client
version: 1.0.3
version: 1.0.4
crystal: ">= 1.0.0"
license: MIT
authors:
Expand Down
3 changes: 2 additions & 1 deletion src/placeos-core-client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ module PlaceOS::Core
end

# Returns the metadata for a particular driver
def driver_details(file_name : String, commit : String, repository : String) : String
def driver_details(file_name : String, commit : String, repository : String, branch : String = "master") : String
params = HTTP::Params{
"commit" => commit,
"repository" => repository,
"branch" => branch,
}
# Response looks like:
# https://github.com/placeos/driver/blob/master/docs/command_line_options.md#discovery-and-defaults
Expand Down

0 comments on commit 52189ac

Please sign in to comment.