train.dart 766 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4 5 6
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import '../runner/flutter_command.dart';

7
/// This command is run when generating the app-JIT snapshot for the tool, so it cannot access the Cache
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
/// or any artifacts that haven't been downloaded yet.
class TrainingCommand extends FlutterCommand {
  @override
  String get description => 'training run for app-jit snapshot';

  @override
  String get name => 'training';

  @override
  bool get hidden => true;

  @override
  bool get shouldUpdateCache => false;

  @override
  Future<FlutterCommandResult> runCommand() async {
    // This command does not do anything yet :).
    return null;
  }
}