Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
36433952
Commit
36433952
authored
Jan 29, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1456 from devoncarew/create_output
make the output from create more terse
parents
5ff2b1a1
a4b0c3d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
create.dart
packages/flutter_tools/lib/src/commands/create.dart
+7
-7
No files found.
packages/flutter_tools/lib/src/commands/create.dart
View file @
36433952
...
...
@@ -52,7 +52,8 @@ class CreateCommand extends Command {
printStatus
(
''
);
String
message
=
'''All done! To run your application:
String
message
=
'''
All done! To run your application:
\$
cd
${out.path}
\$
flutter start
...
...
@@ -64,14 +65,14 @@ class CreateCommand extends Command {
return
code
;
}
printStatus
(
''
);
printStatus
(
message
);
return
0
;
}
Future
<
int
>
pubGet
({
String
directory:
''
,
bool
skipIfAbsent:
false
,
bool
verbose:
true
bool
skipIfAbsent:
false
})
async
{
File
pubSpecYaml
=
new
File
(
path
.
join
(
directory
,
'pubspec.yaml'
));
File
pubSpecLock
=
new
File
(
path
.
join
(
directory
,
'pubspec.lock'
));
...
...
@@ -85,10 +86,9 @@ class CreateCommand extends Command {
}
if
(!
pubSpecLock
.
existsSync
()
||
pubSpecYaml
.
lastModifiedSync
().
isAfter
(
pubSpecLock
.
lastModifiedSync
()))
{
if
(
verbose
)
printStatus
(
"Running pub get in
$directory
..."
);
printStatus
(
"Running 'pub get' in '
$directory
'..."
);
int
code
=
await
runCommandAndStreamOutput
(
[
sdkBinaryName
(
'pub'
)
,
'get'
],
<
String
>[
sdkBinaryName
(
'pub'
),
'--verbosity=warning'
,
'get'
],
workingDirectory:
directory
);
if
(
code
!=
0
)
...
...
@@ -131,7 +131,7 @@ abstract class Template {
File
file
=
new
File
(
path
.
join
(
dir
.
path
,
filePath
));
file
.
parent
.
createSync
();
file
.
writeAsStringSync
(
contents
);
printStatus
(
file
.
path
);
printStatus
(
'
${file.path}
'
);
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment