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
ffc56ff7
Unverified
Commit
ffc56ff7
authored
May 27, 2020
by
Jonah Williams
Committed by
GitHub
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] hide all development tools (#57690)
parent
43f18f36
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
10 deletions
+35
-10
executable.dart
packages/flutter_tools/lib/executable.dart
+5
-4
ide_config.dart
packages/flutter_tools/lib/src/commands/ide_config.dart
+2
-2
inject_plugins.dart
packages/flutter_tools/lib/src/commands/inject_plugins.dart
+2
-2
update_packages.dart
packages/flutter_tools/lib/src/commands/update_packages.dart
+2
-2
command_output_test.dart
...ter_tools/test/integration.shard/command_output_test.dart
+24
-0
No files found.
packages/flutter_tools/lib/executable.dart
View file @
ffc56ff7
...
...
@@ -89,8 +89,6 @@ Future<void> main(List<String> args) async {
EmulatorsCommand
(),
FormatCommand
(),
GenerateCommand
(),
IdeConfigCommand
(
hidden:
!
verboseHelp
),
InjectPluginsCommand
(
hidden:
!
verboseHelp
),
InstallCommand
(),
LogsCommand
(),
MakeHostAppEditableCommand
(),
...
...
@@ -100,14 +98,17 @@ Future<void> main(List<String> args) async {
ScreenshotCommand
(),
ShellCompletionCommand
(),
TestCommand
(
verboseHelp:
verboseHelp
),
TrainingCommand
(),
UpdatePackagesCommand
(
hidden:
!
verboseHelp
),
UpgradeCommand
(),
VersionCommand
(),
SymbolizeCommand
(
stdio:
globals
.
stdio
,
fileSystem:
globals
.
fs
,
),
// Development-only commands. These are always hidden,
IdeConfigCommand
(),
InjectPluginsCommand
(),
TrainingCommand
(),
UpdatePackagesCommand
(),
],
verbose:
verbose
,
muteCommandLogging:
muteCommandLogging
,
verboseHelp:
verboseHelp
,
...
...
packages/flutter_tools/lib/src/commands/ide_config.dart
View file @
ffc56ff7
...
...
@@ -12,7 +12,7 @@ import '../runner/flutter_command.dart';
import
'../template.dart'
;
class
IdeConfigCommand
extends
FlutterCommand
{
IdeConfigCommand
(
{
this
.
hidden
=
false
}
)
{
IdeConfigCommand
()
{
argParser
.
addFlag
(
'overwrite'
,
negatable:
true
,
...
...
@@ -57,7 +57,7 @@ class IdeConfigCommand extends FlutterCommand {
'Currently, IntelliJ is the default (and only) IDE that may be configured.'
;
@override
final
bool
hidden
;
final
bool
hidden
=
true
;
@override
String
get
invocation
=>
'
${runner.executableName}
$name
'
;
...
...
packages/flutter_tools/lib/src/commands/inject_plugins.dart
View file @
ffc56ff7
...
...
@@ -10,7 +10,7 @@ import '../project.dart';
import
'../runner/flutter_command.dart'
;
class
InjectPluginsCommand
extends
FlutterCommand
{
InjectPluginsCommand
(
{
this
.
hidden
=
false
}
)
{
InjectPluginsCommand
()
{
requiresPubspecYaml
();
}
...
...
@@ -21,7 +21,7 @@ class InjectPluginsCommand extends FlutterCommand {
final
String
description
=
'Re-generates the GeneratedPluginRegistrants.'
;
@override
final
bool
hidden
;
final
bool
hidden
=
true
;
@override
Future
<
Set
<
DevelopmentArtifact
>>
get
requiredArtifacts
async
=>
const
<
DevelopmentArtifact
>{};
...
...
packages/flutter_tools/lib/src/commands/update_packages.dart
View file @
ffc56ff7
...
...
@@ -33,7 +33,7 @@ const Map<String, String> _kManuallyPinnedDependencies = <String, String>{
};
class
UpdatePackagesCommand
extends
FlutterCommand
{
UpdatePackagesCommand
(
{
this
.
hidden
=
false
}
)
{
UpdatePackagesCommand
()
{
argParser
..
addFlag
(
'force-upgrade'
,
...
...
@@ -98,7 +98,7 @@ class UpdatePackagesCommand extends FlutterCommand {
final
List
<
String
>
aliases
=
<
String
>[
'upgrade-packages'
];
@override
final
bool
hidden
;
final
bool
hidden
=
true
;
// Lazy-initialize the net utilities with values from the context.
...
...
packages/flutter_tools/test/integration.shard/command_output_test.dart
0 → 100644
View file @
ffc56ff7
// 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.
import
'package:flutter_tools/src/base/io.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:process/process.dart'
;
import
'../src/common.dart'
;
void
main
(
)
{
test
(
'All development tools are hidden'
,
()
async
{
final
String
flutterBin
=
globals
.
fs
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
const
LocalProcessManager
().
run
(<
String
>[
flutterBin
,
'-h'
,
'-v'
,
]);
expect
(
result
.
stdout
,
isNot
(
contains
(
'ide-config'
)));
expect
(
result
.
stdout
,
isNot
(
contains
(
'update-packages'
)));
expect
(
result
.
stdout
,
isNot
(
contains
(
'inject-plugins'
)));
});
}
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