abra app cp
doesn't understand -
any more
#200
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce
➜ tar -c * | abra app cp customhtml_sophielewis_lasophielle - app:/usr/share/nginx/html
Describe the expected behavior
/usr/share/nginx/html
Describe the current behavior
FATA[0003] '-' does not exist?
Additional information
Oh yeah I remember this...I think you can just pass the directory now? It does the tar'ing internally. I had no idea how to make the
-
input work at the time but could look into it again. Can you play around with the path argument and see if it works out 🙏Wow that's even better @decentral1se, another huge win for gobra :met
Leaving this gently open as an "enhancement" to track support for remaining long tail of madcap inter-server one-liners:
(paste the HTML file in the clipboard to a remote server...)
@3wordchant There is a way to make this work. urfave/cli won't mess with the solo
-
but we will need to check for it ourselves. Then when we find the-
we can make the replacement of that arg to read stdin. Make this a custom handling for this command. Do you only do the contents of the files here when using bashbra or does it know when its a path? I think we need to do that parsing manually. I could get on it if you can describe how bashbra would react to that in different ways.@roxxers awesome 🤘
Not sure I understand this bit, could you expand any?
I think all the
-
-handling comes from the underlyingdocker cp
command, all bashbra does is translate service names to container IDs before throwing the args at it.Some examples:
babra app foobar cp - app:/usr/share/nginx/html/index.html
→ copies the stream from STDIN toindex.html
babra app foobar cp app:/usr/share/nginx/html/index.html -
→ streamsindex.html
to STDOUT (although this is less critical cos it could be implemented with anabra app run foobar cat ...
)Still doesn't work out of the box (different error messages 😭) but there is some hope: https://github.com/spf13/cobra/issues/1749 It would be nice to have this back now that we're rid of that borked CLI lib 👀