| OLD | NEW |
| (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 /* |
| 6 Windows-specific function implementations for the firstrun subcommand. |
| 7 */ |
| 8 |
| 9 package firstrun |
| 10 |
| 11 import ( |
| 12 "bufio" |
| 13 "fmt" |
| 14 "os" |
| 15 "path" |
| 16 "runtime" |
| 17 ) |
| 18 |
| 19 // firstrunCheckNotInstalled is a sanity check to make sure that the user really |
| 20 // wants to do firstrun again, if it looks like cr is already installed. |
| 21 func firstrunCheckNotInstalled() { |
| 22 // Check to see if a path ending in 'cr/bin' in in %PATH%. |
| 23 // Check to see if an executable called 'cr.exe' is in that path. |
| 24 } |
| 25 |
| 26 // firstrunPromptInstallDir prompts the user for a directory path to install. |
| 27 func firstrunPromptInstallDir() { |
| 28 // Figure out a sane place to suggest. |
| 29 // Suggest it and ask the user for an alternative. |
| 30 // Check that the chosen directory makes sense. |
| 31 } |
| 32 |
| 33 // firstrunInitInstallDir sets up the selected directory to house cr. It creates |
| 34 // the modules/ and bin/ subdirectories, places cr.exe in the top level, and |
| 35 // symlinks it into bin/. |
| 36 func firstrunInitInstallDir() { |
| 37 |
| 38 } |
| 39 |
| 40 // firstrunUpdatePath finds the registry entry for %PATH%, sees if it can |
| 41 // automatically update it, and prompts the user for permission to do so. |
| 42 func firstrunUpdatePath() { |
| 43 |
| 44 } |
| 45 |
| 46 // firstrunPrintUpdatePathInstructions prints instructions for the user to |
| 47 // update their %PATH% manually. This is used if updatePath fails, or if the |
| 48 // user declines to have their registry updated automatically. |
| 49 func firstrunPrintUpdatePathInstructions() { |
| 50 |
| 51 } |
| OLD | NEW |