Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: mojo/devtools/common/pylib/shell.py

Issue 1128153002: Rename the devtools library: pylib -> devtoolslib. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address offline comments/ devtools_lib -> devtoolslib. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/devtools/common/pylib/linux_shell.py ('k') | mojo/tools/android_mojo_shell.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5
6 class Shell(object):
7 """Represents an abstract Mojo shell."""
8
9 def Run(self, arguments):
10 """Runs the shell with given arguments until shell exits, passing the stdout
11 mingled with stderr produced by the shell onto the stdout.
12
13 Returns:
14 Exit code retured by the shell or None if the exit code cannot be
15 retrieved.
16 """
17 raise NotImplementedError()
18
19 def RunAndGetOutput(self, arguments):
20 """Runs the shell with given arguments until shell exits and returns the
21 output.
22
23 Args:
24 arguments: list of arguments for the shell
25
26 Returns:
27 A tuple of (return_code, output). |return_code| is the exit code returned
28 by the shell or None if the exit code cannot be retrieved. |output| is the
29 stdout mingled with the stderr produced by the shell.
30 """
31 raise NotImplementedError()
OLDNEW
« no previous file with comments | « mojo/devtools/common/pylib/linux_shell.py ('k') | mojo/tools/android_mojo_shell.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698