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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Windows-specific function implementations for the firstrun subcommand.
6
7 package firstrun
8
9 import (
10 "errors"
11 )
12
13 var executableName = "cr.exe"
14
15 // firstrunPromptInstallDir prompts the user for a directory path to install.
16 func firstrunPromptInstallDir() (string, error) {
17 return "", errors.New("firstrun_windows.firstrunPromptInstallDir not yet implemented")
18 }
19
20 // firstrunInitInstallDir sets up the selected directory to house cr. It creates
21 // the modules/ and bin/ subdirectories, places cr.exe in the top level, and
22 // symlinks it into bin/.
23 func firstrunInitInstallDir(dir string) error {
24 return errors.New("firstrun_windows.firstrunInitInstallDir not yet imple mented")
25 }
26
27 // firstrunUpdatePath finds the registry entry for %PATH%, sees if it can
28 // automatically update it, and prompts the user for permission to do so.
29 func firstrunUpdatePath(dir string) error {
30 return errors.New("firstrun_windows.firstrunUpdatePath not yet implement ed")
31 }
32
33 // firstrunPrintUpdatePathInstructions prints instructions for the user to
34 // update their %PATH% manually. This is used if updatePath fails, or if the
35 // user declines to have their registry updated automatically.
36 func firstrunPrintUpdatePathInstructions() error {
37 return errors.New("firstrun_windows.firstrunPrintUpdatePathInstructions not yet implemented")
38 }
OLDNEW
« 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