Fix analysis script to run from anywhere (#86683)
Fixes a small problem with the analyze.dart script that fixes it so that it can be invoked from any directory, not just the Flutter root.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
void main(List<String> args) {
|
||||
String type = '';
|
||||
if (args[0] == '--material') {
|
||||
type = 'material';
|
||||
}
|
||||
if (args[0] == '--cupertino') {
|
||||
type = 'cupertino';
|
||||
}
|
||||
print('''
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
void main(List<String> args) {
|
||||
print('Expected output $type');
|
||||
}
|
||||
''');
|
||||
}
|
||||
Reference in New Issue
Block a user