Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for MapboxDirectionsCLI tool #586

Merged
merged 3 commits into from
Jan 20, 2022

Conversation

jill-cardamon
Copy link
Contributor

@jill-cardamon jill-cardamon commented Sep 3, 2021

This PR fixes #585 by adding documentation for the MapboxDirectionsCLI tool.

@1ec5 1ec5 added this to the v2.1 (beta) milestone Sep 3, 2021
@jill-cardamon jill-cardamon self-assigned this Nov 2, 2021
@jill-cardamon jill-cardamon marked this pull request as ready for review November 2, 2021 13:20
@1ec5 1ec5 modified the milestones: v2.1-beta, v2.1 Nov 11, 2021
@@ -687,6 +688,7 @@
8A41B0FC24F5C2390021FFDC /* CHANGELOG.md */,
438BFEBC233D7FA900457294 /* Package.swift */,
438BFEC0233D805500457294 /* README.md */,
C318CBE626E1B29400E42936 /* MapboxDirectionsCLI.md */,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps CommandLineTool.md would be more discoverable.

# Mapbox Directions CLI

## Getting Started
`MapboxDirectionsCLI` is a command line tool, designed to round-trip an arbitrary, JSON-formatted Directions or Map Matching API response through model objects and back to JSON. This is useful for various scenarios including testing purposes and designing more sophisticated API response processing pipelines. It is supplied as a Swift package.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“MapboxDirectionsCLI” isn’t a name we seem to be using anywhere from a user perspective.

Suggested change
`MapboxDirectionsCLI` is a command line tool, designed to round-trip an arbitrary, JSON-formatted Directions or Map Matching API response through model objects and back to JSON. This is useful for various scenarios including testing purposes and designing more sophisticated API response processing pipelines. It is supplied as a Swift package.
`mapbox-directions-swift` is a command line tool, designed to round-trip an arbitrary, JSON-formatted Directions or Map Matching API response through model objects and back to JSON. This is useful for various scenarios including testing purposes and designing more sophisticated API response processing pipelines. It is supplied as a Swift package.

By the way, this description will need to be revisited as part of #576, which makes the tool into a more straightforward command-line version of normal usage of the library.

Copy link
Contributor Author

@jill-cardamon jill-cardamon Nov 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a note to that pr as a reminder.

"MapboxDirectionsCLI" is the name of the target. We should change references to the tool to "mapbox-directions-swift" but keep references to "MapboxDirectionsCLI" for the build instructions.

README.md Outdated
@@ -217,6 +217,8 @@ To run (and build if it wasn't yet) `MapboxDirectionsCLI` and see usage:

1. `swift run mapbox-directions-swift -h`

For further details, see the [MapboxDirectionsCLI documentation](ADD LINK).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subject to the suggestion above:

Suggested change
For further details, see the [MapboxDirectionsCLI documentation](ADD LINK).
For further details, see the [MapboxDirectionsCLI documentation](MapboxDirectionsCLI.md).

@1ec5 1ec5 modified the milestones: v2.1, v2.2-rc Dec 20, 2021
@jill-cardamon jill-cardamon merged commit 8ef7ff8 into main Jan 20, 2022
@jill-cardamon jill-cardamon deleted the jill/cmdlineDocs-585 branch January 20, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add documentation for MapboxDirectionsCLI
2 participants