Target.classify.hub: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/target.bend as Target Lines 347-355 of ezx@1.11.0.0/src/ez/target.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/target.bend&start_line=347&end_line=355 import Base # `owner/repo`. Its slug is safe without the check a URL's gets: neither # segment is empty, `.`, `..` or holds a slash, so it cannot climb out of the # cache. A trailing `.git` is not part of the cache directory, as for a URL. def classify.hub(ok: Bool, +text: String) -> Place: match ok: case True{}: Remote{"https://github.com/" ++ text, "github.com/" ++ ungit(text)} case False{}: classify.scp(String.starts_with(text, "git@"), text) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/target.bend&name=Place https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/target.bend&name=classify.scp https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/target.bend&name=ungit