diff --git a/.github/bin/create-artifact b/.github/bin/create-artifact index 7e71d6e1d..c765f602b 100755 --- a/.github/bin/create-artifact +++ b/.github/bin/create-artifact @@ -3,7 +3,7 @@ ARTIFACTS_DIR="artifacts" mkdir -p $ARTIFACTS_DIR -BINARY_NAME="canonicaldatasyncer" +BINARY_NAME="canonical_data_syncer" case "$OS" in windows) diff --git a/.gitignore b/.gitignore index 69105a859..2fcee1cf8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ .vscode/ # Application binary -canonicaldatasyncer +canonical_data_syncer # Temporary prob-specs repo .problem-specifications/ diff --git a/README.md b/README.md index 4212984aa..edfa31ca5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This small application is used to help Exercism tracks keep their exercise-speci The application is a single binary and can be used as follows: ``` -Usage: canonicaldatasyncer [options] +Usage: canonical_data_syncer [options] Options: -e, --exercise Only sync this exercise @@ -22,7 +22,7 @@ Running the application will prompt the user to choose whether to include or exc ## Use in your track -To use the application in your track, you can copy the [`scripts/fetch-canonicaldatasyncer`](./scripts/fetch-canonicaldatasyncer) and/or [`scripts/fetch-canonicaldatasyncer.ps1`](./scripts/fetch-canonicaldatasyncer.ps1) files to your track's repository. Running either of these scripts will download the latest version of the `canonicaldatasyncer` tool to your track's `bin` directory. +To use the application in your track, you can copy the [`scripts/fetch-canonical_data_syncer`](./scripts/fetch-canonical_data_syncer) and/or [`scripts/fetch-canonical_data_syncer.ps1`](./scripts/fetch-canonical_data_syncer.ps1) files to your track's repository. Running either of these scripts will download the latest version of the `canonical_data_syncer` tool to your track's `bin` directory. ## Contributing diff --git a/canonicaldatasyncer.nimble b/canonical_data_syncer.nimble similarity index 87% rename from canonicaldatasyncer.nimble rename to canonical_data_syncer.nimble index c766956f2..b5c188ee0 100644 --- a/canonicaldatasyncer.nimble +++ b/canonical_data_syncer.nimble @@ -4,7 +4,7 @@ author = "Erik Schierboom" description = "Sync canonical data from the Problem Specifications repo to the track repo" license = "AGPL3" srcDir = "src" -bin = @["canonicaldatasyncer"] +bin = @["canonical_data_syncer"] backend = "c" diff --git a/scripts/fetch-canonicaldatasyncer b/scripts/fetch-canonical_data_syncer similarity index 84% rename from scripts/fetch-canonicaldatasyncer rename to scripts/fetch-canonical_data_syncer index 3fcacfc44..94be5ac2b 100755 --- a/scripts/fetch-canonicaldatasyncer +++ b/scripts/fetch-canonical_data_syncer @@ -32,7 +32,7 @@ else HEADER="authorization: Bearer ${GITHUB_TOKEN}" fi -FILENAME="canonicaldatasyncer-${OS}-${ARCH}.${EXT}" +FILENAME="canonical_data_syncer-${OS}-${ARCH}.${EXT}" get_url () { curl --header "$HEADER" -s "$LATEST" | @@ -44,9 +44,9 @@ URL=$(get_url) case "$EXT" in (*zip) - curl --header "$HEADER" -s --location "$URL" -o bin/latest-canonicaldatasyncer.zip - unzip bin/latest-canonicaldatasyncer.zip -d bin/ - rm bin/latest-canonicaldatasyncer.zip + curl --header "$HEADER" -s --location "$URL" -o bin/latest-canonical-data-syncer.zip + unzip bin/latest-canonical-data-syncer.zip -d bin/ + rm bin/latest-canonical-data-syncer.zip ;; (*) curl --header "$HEADER" -s --location "$URL" | tar xz -C bin/ ;; esac diff --git a/scripts/fetch-canonicaldatasyncer.ps1 b/scripts/fetch-canonical_data_syncer.ps1 similarity index 94% rename from scripts/fetch-canonicaldatasyncer.ps1 rename to scripts/fetch-canonical_data_syncer.ps1 index e0a06dc6a..025bddaed 100644 --- a/scripts/fetch-canonicaldatasyncer.ps1 +++ b/scripts/fetch-canonical_data_syncer.ps1 @@ -14,7 +14,7 @@ Function Arch { $arch = Arch $headers = Headers -$fileName = "canonicaldatasyncer-windows-$arch.zip" +$fileName = "canonical_data_syncer-windows-$arch.zip" $outputDirectory = "bin" $outputFile = Join-Path -Path $outputDirectory -ChildPath $fileName $zipUrl = DownloadUrl -FileName $fileName -Headers $headers diff --git a/src/canonicaldatasyncer.nim b/src/canonical_data_syncer.nim similarity index 100% rename from src/canonicaldatasyncer.nim rename to src/canonical_data_syncer.nim