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

[TT-40] Expand output path with tilde #357

Merged
merged 6 commits into from
Jul 25, 2019

Conversation

medric
Copy link
Contributor

@medric medric commented Jul 24, 2019

Node doesn't expand ~to the current user's home directory - see nodejs/node#684.

Looks like this has to be implemented manually if we really want to leverage this feature, hence the following changes.

@medric medric requested review from fwouts and lfportal and removed request for fwouts July 24, 2019 05:15
@@ -255,7 +255,8 @@ OPTIONS
-h, --help show CLI help
-p, --port=port (required) [default: 3010] Port on which to run the mock server
--pathPrefix=pathPrefix Prefix to prepend to each endpoint path
--proxyBaseUrl=proxyBaseUrl If set, the server would act as a proxy and fetch data from the given remote server

--proxyBaseUrl=proxyBaseUrl If set, the server will act as a proxy and fetch data from the given remote server
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems unrelated?

@@ -0,0 +1,11 @@
import os from "os";

export default function expandPathWithTilde(path: string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider using a named export to follow conventions in the Spot codebase.

@medric medric merged commit a64e96f into master Jul 25, 2019
@medric medric deleted the TT-40-expand-output-path-with-tilde branch July 25, 2019 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants