abra app cp
doesn't understand -
any more #200
Labels
No Label
abra
abra-gandi
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
democracy
design
documentation
duplicate
enhancement
finance
funding
good first issue
help wanted
installer
kadabra
performance
proposal
question
recipes.coopcloud.tech
security
test
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/organising#200
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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 ...
)