You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commands.d/self-setup.sh
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ shortDescription: The command run after the installation of Valet to setup the t
20
20
description: |-
21
21
The command run after the installation of Valet to setup the tool.
22
22
23
+
copy the showcase
23
24
Create a shim/proxy script in `~/.local/bin` that points to `~/.local/lib/valet/valet` (the valet entry point).
24
25
Make the valet script readable and executable, either by adding a shim
25
26
in a bin directory already present in your PATH, or by adding the Valet
@@ -107,3 +108,23 @@ function selfSetup_setupForWindows() {
107
108
log::info "Adding ⌜${windowsInstallationPath}⌝ to the user windows PATH."
108
109
windows::addToPath "${windowsInstallationPath}"
109
110
}
111
+
112
+
# Copy the showcase to the user directory.
113
+
functioncopyShowcase() {
114
+
local \
115
+
installationDirectory="${1}" \
116
+
extensionsDirectory="${2}"
117
+
118
+
testCommand "mkdir"
119
+
testCommand "cp"
120
+
121
+
mkdir -p "${extensionsDirectory}"|| core::fail "Could not create the extensions directory ⌜${extensionsDirectory}⌝."
122
+
123
+
if [[ -d"${extensionsDirectory}/showcase.d" ]];then
124
+
rm -Rf "${extensionsDirectory}/showcase.d"&>/dev/null || core::fail "Could not remove the existing showcase (command examples) in ⌜${extensionsDirectory}⌝."
125
+
fi
126
+
127
+
cp -R "${installationDirectory}/showcase.d""${extensionsDirectory}"|| core::fail "Could not copy the showcase (command examples) to ⌜${extensionsDirectory}⌝."
128
+
129
+
log::success "The showcase has been copied to ⌜${extensionsDirectory}/showcase.d⌝."
Copy file name to clipboardExpand all lines: docs/content/docs/800.roadmap/_index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ url: /docs/roadmap
8
8
9
9
This page lists the features that I would like to implement in Valet. They come in addition to new features described in the [issues][valet-issues].
10
10
11
+
- make version a command instead of an option, and add a `valet version` command that shows the current version and the latest release. Also show the extension versions ?
11
12
- implement fs::normalizePath
12
13
- Modify self install: at the moment we count on the fact that some functions will still exist in valet after an update. The simplest is to redownload the self install script and run it again.
13
14
- Implement tests that are only run with -e flag and where we test system specific stuff, like the windows library and fs::createLink, absolute path with real path etc...
log::success "Valet version ⌜${version}⌝ has been installed in ⌜${installationDirectory}⌝."
148
145
149
146
# remove the user commands to rebuild them
150
147
command::deleteCommandsIndex
151
148
152
-
# run the setup command
153
-
log::info "Running the self setup command."
154
-
"${installationDirectory}/valet" self setup
149
+
if [[ ${skipSetup}=="true" ]];then
150
+
log::warning "Skipping the valet self setup command as --skip-setup has been passed."$'\n'"You can now run ⌜valet self setup⌝ manually to finish setting up valet."$'\n'"Or add ${installationDirectory} to your PATH."
log::success "Valet has been downloaded in ⌜${installationDirectory}⌝."
221
222
}
222
223
223
-
# Copy the showcase to the user directory.
224
-
functioncopyShowcase() {
225
-
local \
226
-
installationDirectory="${1}" \
227
-
extensionsDirectory="${2}"
228
-
229
-
testCommand "mkdir"
230
-
testCommand "cp"
231
-
232
-
mkdir -p "${extensionsDirectory}"|| core::fail "Could not create the extensions directory ⌜${extensionsDirectory}⌝."
233
-
234
-
if [[ -d"${extensionsDirectory}/showcase.d" ]];then
235
-
rm -Rf "${extensionsDirectory}/showcase.d"&>/dev/null || core::fail "Could not remove the existing showcase (command examples) in ⌜${extensionsDirectory}⌝."
236
-
fi
237
-
238
-
cp -R "${installationDirectory}/showcase.d""${extensionsDirectory}"|| core::fail "Could not copy the showcase (command examples) to ⌜${extensionsDirectory}⌝."
239
-
240
-
log::success "The showcase has been copied to ⌜${extensionsDirectory}/showcase.d⌝."
0 commit comments