コード例 #1
0
 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')
コード例 #2
0
ファイル: ssh.py プロジェクト: saranraju90/multik8s
    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')
コード例 #3
0
 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.
     """)
コード例 #4
0
ファイル: ssh.py プロジェクト: jphalip/google-cloud-sdk
    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')