Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: pkg/fletchc/lib/src/verbs/x_upgrade_verb.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/fletchc/lib/src/verbs/x_servicec_verb.dart ('k') | pkg/fletchc/lib/src/worker/developer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/src/verbs/x_upgrade_verb.dart
diff --git a/pkg/fletchc/lib/src/verbs/x_upgrade_verb.dart b/pkg/fletchc/lib/src/verbs/x_upgrade_verb.dart
deleted file mode 100644
index 96ef403ef950e01a16e297961db9237b657e6b81..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/verbs/x_upgrade_verb.dart
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-library fletchc.verbs.x_upgrade_verb;
-
-import 'infrastructure.dart';
-import '../worker/developer.dart' show upgradeAgent;
-import 'documentation.dart' show upgradeDocumentation;
-
-const Action upgradeAction = const Action(
- upgradeFunction,
- upgradeDocumentation,
- requiresSession: true,
- supportsWithUri: true,
- requiredTarget: TargetKind.AGENT);
-
-Future upgradeFunction(AnalyzedSentence sentence, VerbContext context) async {
- return context.performTaskInWorker(
- new UpgradeTask(sentence.base, sentence.withUri));
-}
-
-class UpgradeTask extends SharedTask {
- final Uri base;
- final Uri package;
-
- UpgradeTask(this.base, this.package);
-
- Future call(
- CommandSender commandSender,
- StreamIterator<ClientCommand> commandIterator) async {
- return await upgradeAgent(commandSender, commandIterator,
- SessionState.current, base, package);
- }
-}
« no previous file with comments | « pkg/fletchc/lib/src/verbs/x_servicec_verb.dart ('k') | pkg/fletchc/lib/src/worker/developer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698