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
a4b0c3d5
Commit
a4b0c3d5
authored
Jan 28, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the output from create more terse
parent
5ff2b1a1
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 @
a4b0c3d5
...
@@ -52,7 +52,8 @@ class CreateCommand extends Command {
...
@@ -52,7 +52,8 @@ class CreateCommand extends Command {
printStatus
(
''
);
printStatus
(
''
);
String
message
=
'''All done! To run your application:
String
message
=
'''
All done! To run your application:
\$
cd
${out.path}
\$
cd
${out.path}
\$
flutter start
\$
flutter start
...
@@ -64,14 +65,14 @@ class CreateCommand extends Command {
...
@@ -64,14 +65,14 @@ class CreateCommand extends Command {
return
code
;
return
code
;
}
}
printStatus
(
''
);
printStatus
(
message
);
printStatus
(
message
);
return
0
;
return
0
;
}
}
Future
<
int
>
pubGet
({
Future
<
int
>
pubGet
({
String
directory:
''
,
String
directory:
''
,
bool
skipIfAbsent:
false
,
bool
skipIfAbsent:
false
bool
verbose:
true
})
async
{
})
async
{
File
pubSpecYaml
=
new
File
(
path
.
join
(
directory
,
'pubspec.yaml'
));
File
pubSpecYaml
=
new
File
(
path
.
join
(
directory
,
'pubspec.yaml'
));
File
pubSpecLock
=
new
File
(
path
.
join
(
directory
,
'pubspec.lock'
));
File
pubSpecLock
=
new
File
(
path
.
join
(
directory
,
'pubspec.lock'
));
...
@@ -85,10 +86,9 @@ class CreateCommand extends Command {
...
@@ -85,10 +86,9 @@ class CreateCommand extends Command {
}
}
if
(!
pubSpecLock
.
existsSync
()
||
pubSpecYaml
.
lastModifiedSync
().
isAfter
(
pubSpecLock
.
lastModifiedSync
()))
{
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
(
int
code
=
await
runCommandAndStreamOutput
(
[
sdkBinaryName
(
'pub'
)
,
'get'
],
<
String
>[
sdkBinaryName
(
'pub'
),
'--verbosity=warning'
,
'get'
],
workingDirectory:
directory
workingDirectory:
directory
);
);
if
(
code
!=
0
)
if
(
code
!=
0
)
...
@@ -131,7 +131,7 @@ abstract class Template {
...
@@ -131,7 +131,7 @@ abstract class Template {
File
file
=
new
File
(
path
.
join
(
dir
.
path
,
filePath
));
File
file
=
new
File
(
path
.
join
(
dir
.
path
,
filePath
));
file
.
parent
.
createSync
();
file
.
parent
.
createSync
();
file
.
writeAsStringSync
(
contents
);
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