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

Unified Diff: go/src/infra/tools/cr/cmd/firstrun/firstrun_windows.go

Issue 1929153002: Add beginnings of new cr command (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix windows arguments Created 4 years, 6 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 | « go/src/infra/tools/cr/cmd/firstrun/firstrun_unix.go ('k') | go/src/infra/tools/cr/cr.infra_testing » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/tools/cr/cmd/firstrun/firstrun_windows.go
diff --git a/go/src/infra/tools/cr/cmd/firstrun/firstrun_windows.go b/go/src/infra/tools/cr/cmd/firstrun/firstrun_windows.go
new file mode 100644
index 0000000000000000000000000000000000000000..6a96a606c59603d8a13e3fc99eecab1885afc85f
--- /dev/null
+++ b/go/src/infra/tools/cr/cmd/firstrun/firstrun_windows.go
@@ -0,0 +1,38 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Windows-specific function implementations for the firstrun subcommand.
+
+package firstrun
+
+import (
+ "errors"
+)
+
+var executableName = "cr.exe"
+
+// firstrunPromptInstallDir prompts the user for a directory path to install.
+func firstrunPromptInstallDir() (string, error) {
+ return "", errors.New("firstrun_windows.firstrunPromptInstallDir not yet implemented")
+}
+
+// firstrunInitInstallDir sets up the selected directory to house cr. It creates
+// the modules/ and bin/ subdirectories, places cr.exe in the top level, and
+// symlinks it into bin/.
+func firstrunInitInstallDir(dir string) error {
+ return errors.New("firstrun_windows.firstrunInitInstallDir not yet implemented")
+}
+
+// firstrunUpdatePath finds the registry entry for %PATH%, sees if it can
+// automatically update it, and prompts the user for permission to do so.
+func firstrunUpdatePath(dir string) error {
+ return errors.New("firstrun_windows.firstrunUpdatePath not yet implemented")
+}
+
+// firstrunPrintUpdatePathInstructions prints instructions for the user to
+// update their %PATH% manually. This is used if updatePath fails, or if the
+// user declines to have their registry updated automatically.
+func firstrunPrintUpdatePathInstructions() error {
+ return errors.New("firstrun_windows.firstrunPrintUpdatePathInstructions not yet implemented")
+}
« no previous file with comments | « go/src/infra/tools/cr/cmd/firstrun/firstrun_unix.go ('k') | go/src/infra/tools/cr/cr.infra_testing » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698