You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version (optional): The git version of the packge. It is usually a tag but can also be a branch. If this is left out the version will default to the latest tag, or if there are no tags then master.
Document says third option string can be branch name.
Haven't you implemented it? It seems to supported only master branch.
}else if string.contains(".") || string =="master"{
I want to implement to support reading branch name other than master.
But I think that the syntax cannot make distinction between command and version in some circumstances. mint run yonaskolb/xcodegen xcodegen
This can be interpreted as user/repo branch or user/repo command.
Although this does not maintain backward compatibility, I suggest the syntax like user/repo@branch command.
The text was updated successfully, but these errors were encountered:
Hi @ryohey, any branch is supported. That code you point to is just trying to guess what the second parameter is if you only specify 2.
so you can use something like mint run yonaskolb/xcodegen mybranch xcodegen
Having them be flags would be less ambiguous but more verbose. I like your @ suggestion, though as you say it would be a breaking change
Document says third option string can be branch name.
Haven't you implemented it? It seems to supported only master branch.
Mint/Sources/Mint/main.swift
Line 61 in 10d99f9
I want to implement to support reading branch name other than master.
But I think that the syntax cannot make distinction between command and version in some circumstances.
mint run yonaskolb/xcodegen xcodegen
This can be interpreted as
user/repo branch
oruser/repo command
.Although this does not maintain backward compatibility, I suggest the syntax like
user/repo@branch command
.The text was updated successfully, but these errors were encountered: