Skip to content

Commit 038b029

Browse files
authored
Update backed and CLI to use v2.0 (#15)
* remove pre-release; add v20 (v2.0) * pull from v2.0
1 parent 8c086be commit 038b029

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cli/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Usage:
4242
Examples:
4343
hfsubset -l divides,nexus \
4444
-o ./divides_nexus.gpkg \
45-
-r "pre-release" \
45+
-r "v20" \
4646
-t hl_uri \
4747
"Gages-06752260"
4848
@@ -106,7 +106,8 @@ func (opts *SubsetRequest) MarshalJSON() ([]byte, error) {
106106

107107
jsonmap["layers"] = opts.Layers()
108108
jsonmap[key] = opts.IDs()
109-
jsonmap["version"] = "pre-release"
109+
// TODO: use opts.version
110+
jsonmap["version"] = "v20" // v20 is v2.0
110111
return json.Marshal(jsonmap)
111112
}
112113

runtime.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ subset <- function(
2929
nldi = NULL,
3030
loc = NULL,
3131
layers = c("divides", "nexus", "flowpaths", "network", "hydrolocations"),
32-
version = c("pre-release", "v1.0", "v1.1", "v1.2")
32+
version = c("v1.0", "v1.1", "v1.2", "v20")
3333
) {
3434
version <- match.arg(version)
3535
s3_uri <- paste0("s3://lynker-spatial/", version, "/")

0 commit comments

Comments
 (0)