From f74261dbe6da6272a25fba9e30d87d5165761451 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sat, 13 Nov 2021 22:49:53 +0100 Subject: [PATCH] docs: document app cp command syntax See https://git.coopcloud.tech/coop-cloud/organising/issues/245. --- cli/app/cp.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cli/app/cp.go b/cli/app/cp.go index 78d41a7d..201b8947 100644 --- a/cli/app/cp.go +++ b/cli/app/cp.go @@ -21,6 +21,18 @@ var appCpCommand = &cli.Command{ Aliases: []string{"c"}, ArgsUsage: " ", Usage: "Copy files to/from a running app service", + Description: ` +This command supports copying files to and from any app service file system. + +If you want to copy a myfile.txt to the root of the app service: + + abra app cp myfile.txt app:/ + +And if you want to copy that file back to your current working directory locally: + + abra app cp app:/myfile.txt . + +`, Action: func(c *cli.Context) error { app := internal.ValidateApp(c)