Skip to content

Commit

Permalink
Use underscore in application name (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Oct 9, 2020
1 parent e7a86c9 commit f504171
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/bin/create-artifact
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARTIFACTS_DIR="artifacts"
mkdir -p $ARTIFACTS_DIR

BINARY_NAME="canonicaldatasyncer"
BINARY_NAME="canonical_data_syncer"

case "$OS" in
windows)
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.vscode/

# Application binary
canonicaldatasyncer
canonical_data_syncer

# Temporary prob-specs repo
.problem-specifications/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <slug> Only sync this exercise
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" |
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.

0 comments on commit f504171

Please sign in to comment.