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

spruce merge don't support file name equal to '-' (STDIN) #306

Closed
MMedini opened this issue Nov 25, 2019 · 2 comments
Closed

spruce merge don't support file name equal to '-' (STDIN) #306

MMedini opened this issue Nov 25, 2019 · 2 comments

Comments

@MMedini
Copy link

MMedini commented Nov 25, 2019

spruce merge -
Error reading file -: open -: no such file or directory

spruce merge -h
Error reading file -h: open -h: no such file or directory

Looks like spruce merge doesn't support this kind of operation, '-' for STDIN and '-h' for help
I'm using spruce cli version v1.24.0

@geofffranks
Copy link
Owner

Sorry about that. Looks like it broke during a refactor in 1.24.0. Should be fixed tonight in 1.24.1

@jhunt
Copy link
Collaborator

jhunt commented Feb 25, 2020

This still seems broken for me in 1.25.1:

→  spruce --version
spruce - Version 1.25.1

→  cat foo.yml
test: foo

→  echo 'test: bar' | spruce merge foo.yml -
Error reading STDIN: no data found. Did you forget to pipe data to STDIN, or specify yaml files to merge?

It works in 1.23.0:

→  spruce --version
spruce - Version 1.23.0

→  cat foo.yml
test: foo

→  echo 'test: bar' | spruce merge foo.yml -
test: bar

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

No branches or pull requests

3 participants