Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dart.googlesource.com-stagehand
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
dart.googlesource.com-stagehand
Commits
25b0cd41
Commit
25b0cd41
authored
9 years ago
by
sh4869
Committed by
Kathy Walrath
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use git user name for author name
closes #304
parent
d10172ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AUTHORS
+1
-0
1 addition, 0 deletions
AUTHORS
lib/src/cli_app.dart
+8
-0
8 additions, 0 deletions
lib/src/cli_app.dart
with
9 additions
and
0 deletions
AUTHORS
+
1
−
0
View file @
25b0cd41
...
...
@@ -13,3 +13,4 @@ Guillermo López-Anglada <guillermo.lopez@outlook.com>
ntaoo <ntaoo.g@gmail.com>
Andrés Araujo <a.araujo.azua@gmail.com>
Kevin Segaud <segaud.kevin@gmail.com>
sh4869 <nobuk4869@gmail.com>
This diff is collapsed.
Click to expand it.
lib/src/cli_app.dart
+
8
−
0
View file @
25b0cd41
...
...
@@ -167,6 +167,14 @@ additional analytics to help us improve Stagehand [y/yes/no]? """);
String
author
=
options
[
'author'
];
if
(
!
options
.
wasParsed
(
'author'
))
{
try
{
io
.
ProcessResult
result
=
io
.
Process
.
runSync
(
'git'
,
[
'config'
,
'user.name'
]);
if
(
result
.
exitCode
==
0
)
author
=
result
.
stdout
.
trim
();
}
catch
(
exception
)
{}
}
Map
vars
=
{
'author'
:
author
};
Future
f
=
generator
.
generate
(
projectName
,
target
,
additionalVars:
vars
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment