abra app cp doesn't understand - any more
#200
Open
opened 2021-10-13 09:03:53 +00:00 by 3wordchant
·
5 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#200
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Steps to reproduce
➜ tar -c * | abra app cp customhtml_sophielewis_lasophielle - app:/usr/share/nginx/htmlDescribe the expected behavior
/usr/share/nginx/htmlDescribe 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 cpcommand, 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.htmlbabra app foobar cp app:/usr/share/nginx/html/index.html -→ streamsindex.htmlto 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 👀