Skip to content

Commit

Permalink
v0.2.0: Add --duplicate-columns
Browse files Browse the repository at this point in the history
The `--replace` flag from v0.2.0-alpha.1 has been removed. Instead, you
may now specify one of the following:

`--duplicate-columns=error` (default):
    Fail if any output columns already exist in the input CSV.
`--duplicate-columns=replace` (default):
    Remove any input columns which have the same name as output columns
    before geocoding.
`--duplicate-columns=append` (default):
    Just add the output columns and don't worry about duplicates.

Users migrating from 0.1.x should specify `--duplicate-columns=append`
if they want to maintain backwards compatibility.

This version also ships with a more extensive set of integration tests,
which actually run `geocode-csv` as a CLI tool, and which use the real
SmartyStreets API.
  • Loading branch information
emk committed Nov 19, 2019
1 parent be78e67 commit da53c1b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
29 changes: 28 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
[package]
name = "geocode-csv"
version = "0.2.0-alpha.1"
version = "0.2.0"
authors = ["Eric Kidd <[email protected]>"]
edition = "2018"

description = "Unofficial CLI tool to bulk geocode CSV data using the SmartyStreets API"
license = "Apache-2.0 OR MIT"
readme = "README.md"
repository = "https://github.com/faradayio/geocode-csv"
documentation = "https://github.com/faradayio/geocode-csv"


[dev-dependencies]
cli_test_dir = "0.1.7"

[dependencies]
common_failures = "0.1.1"
csv = "1.0.7"
Expand All @@ -18,5 +28,7 @@ serde = { version = "1.0.92", features = ["derive"] }
# specifications in a way that puts the right data in the right output columns.
serde_json = { version = "1.0.39", features = ["preserve_order"] }
structopt = "0.3.4"
strum = "0.16.0"
strum_macros = "0.16.0"
tokio = "0.1"
url = "1.7.2"

0 comments on commit da53c1b

Please sign in to comment.