def Args(parser): util.ParseCommonArgs(parser) parser.add_argument('sources', help='Specifies the files to copy.', type=FILE_TYPE, metavar='(cloudshell|localhost):SRC', nargs='+') parser.add_argument( 'destination', help='Specifies a destination for the source files.', type=FILE_TYPE, metavar='(cloudshell|localhost):DEST') parser.add_argument('--dry-run', help="""\ If provided, prints the command that would be run to standard out instead of executing it. """, action='store_true') parser.add_argument('--recurse', help='Upload directories recursively.', action='store_true') parser.add_argument( '--scp-flag', help='Extra flag to be sent to scp. This flag may be repeated.', action='append')
def Args(parser): util.ParseCommonArgs(parser) parser.add_argument('--command', help="""\ A command to run in Cloud Shell. Runs the command in Cloud Shell and then exits. """) parser.add_argument('--dry-run', help="""\ If provided, prints the command that would be run to standard out instead of executing it. """, action='store_true') parser.add_argument('--ssh-flag', help='Additional flags to be passed to *ssh(1)*.', action='append') parser.add_argument('--authorize-session', help="""\ If provided, sends OAuth credentials to the current Cloud Shell session on behalf of the user. When this completes, the session will be authorized to run various Google Cloud command-line tools without requiring the user to manually authenticate. """, action='store_true')
def Args(parser): util.ParseCommonArgs(parser) parser.add_argument('mount_dir', completer=FilesCompleter, help="""\ Local directory onto which the Cloud Shell home directory should be mounted. """)
def Args(parser): util.ParseCommonArgs(parser) parser.add_argument('--command', help="""\ A command to run in Cloud Shell. Runs the command in Cloud Shell and then exits. """) parser.add_argument('--dry-run', help="""\ If provided, prints the command that would be run to standard out instead of executing it. """, action='store_true') parser.add_argument('--ssh-flag', help='Additional flags to be passed to *ssh(1)*.', action='append')