Skip to content

Commit

Permalink
fix: [#305] fix problematic name
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick330602 committed Mar 11, 2024
1 parent 19cef0a commit 2029cb6
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
>
> If you have problems, please check whther you are using the [PPA version of wslu](https://launchpad.net/~wslutilities/+archive/ubuntu/wslu). If not, please report to the Ubuntu WSL team; However, the PPA version of wslu will address most issue that come from the built-in version.
This is a collection of utilities for the Linux Subsystem for Windows (WSL), such as converting Linux paths to Windows paths or creating Linux application shortcuts on the Windows Desktop.
This is a collection of utilities for the Windows Subsystem for Linux (WSL), such as converting Linux paths to Windows paths or creating Linux application shortcuts on the Windows Desktop.

- Requires at least Windows 10 Creators Update;
- Some of the features require a higher version of Windows;
Expand Down
4 changes: 2 additions & 2 deletions docs/wslu.7
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.TH "WSLU" "7" "DATEPLACEHOLDER" "VERSIONPLACEHOLDER" "WSL Utilities User Manual"
.SH NAME
.B wslu
A collection of utilities for the Linux Subsystem for Windows
A collection of utilities for the Windows Subsystem for Linux
.SH DESCRIPTION
This is a collection of utilities for the Linux Subsystem for Windows (WSL), such as converting Linux paths to Windows paths or creating Linux application shortcuts on the Windows Desktop.
This is a collection of utilities for the Windows Subsystem for Linux (WSL), such as converting Linux paths to Windows paths or creating Linux application shortcuts on the Windows Desktop.
.PP
Requires Windows 10 Creators Update and higher.
.SH AVAILABLE COMMANDS
Expand Down
2 changes: 1 addition & 1 deletion extras/build/alpine/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pkgname=wslu
pkgver=4.1.0
pkgrel=0
pkgdesc="A collection of utilities for the Linux Subsystem for Windows"
pkgdesc="A collection of utilities for the Windows Subsystem for Linux"
url="https://github.com/wslutilities/wslu"
arch="noarch"
license="GPL-3.0-or-later"
Expand Down
2 changes: 1 addition & 1 deletion extras/build/arch/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pkgname=wslu
pkgver=4.1.0
pkgrel=0
pkgdesc="A collection of utilities for the Linux Subsystem for Windows"
pkgdesc="A collection of utilities for the Windows Subsystem for Linux"
arch=('any')
url='https://github.com/wslutilities/wslu'
license=('GPL-3.0-or-later')
Expand Down
2 changes: 1 addition & 1 deletion extras/build/rpm/copr/wslu.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%define packager Jinming Wu, Patrick <me@patrickwu.space>
Summary: A collection of utilities for the Linux Subsystem for Windows
Summary: A collection of utilities for the Windows Subsystem for Linux
Name: wslu
Version: BUILDVERPLACEHOLDER
Release: RELVERPLACEHOLDER
Expand Down
2 changes: 1 addition & 1 deletion extras/build/rpm/obs/wslu.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%define packager Jinming Wu, Patrick <me@patrickwu.space>
Summary: A collection of utilities for the Linux Subsystem for Windows
Summary: A collection of utilities for the Windows Subsystem for Linux
Name: wslu
Version: BUILDVERPLACEHOLDER
Release: RELVERPLACEHOLDER
Expand Down
2 changes: 1 addition & 1 deletion src/wslu-header
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ fi

function help {
app_name=$wslu_util_name
echo -e "$app_name - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)
echo -e "$app_name - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)
Usage: $2
For more help for $app_name, please use the command \`man $app_name\` or visit the following site: https://wslutiliti.es/wslu/man/$app_name.html.
Expand Down
28 changes: 14 additions & 14 deletions tests/wslact.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,84 +3,84 @@
#wslact testing
@test "wslact - Help" {
run out/wslact --help
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact COMMAND ..." ]
}

@test "wslact - Help - Alt." {
run out/wslact -h
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact COMMAND ..." ]
}

@test "wslact - Time Sync - Help" {
run out/wslact time-sync --help
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact time-reset [-h]" ]
}

@test "wslact - Time Sync - Help - Alt." {
run out/wslact time-sync -h
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact time-reset [-h]" ]
}

@test "wslact - Time Sync - short form - Help" {
run out/wslact ts --help
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact time-reset [-h]" ]
}

@test "wslact - Time Sync - short form - Help - Alt." {
run out/wslact ts -h
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact time-reset [-h]" ]
}

@test "wslact - Smart Mounting - Help" {
run out/wslact auto-mount --help
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact auto-mount [-mh]" ]
}

@test "wslact - Smart Mounting - Help - Alt." {
run out/wslact auto-mount -h
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact auto-mount [-mh]" ]
}

@test "wslact - Smart Mounting - short form - Help" {
run out/wslact am --help
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact auto-mount [-mh]" ]
}

@test "wslact - Smart Mounting - short form - Help - Alt." {
run out/wslact am -h
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact auto-mount [-mh]" ]
}

@test "wslact - Memory Reclamation - Help" {
run out/wslact memory-reclaim --help
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact memory-reclaim [-h]" ]
}

@test "wslact - Memory Reclamation - Help - Alt." {
run out/wslact memory-reclaim -h
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact memory-reclaim [-h]" ]
}

@test "wslact - Memory Reclamation - short form - Help" {
run out/wslact mr --help
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact memory-reclaim [-h]" ]
}

@test "wslact - Memory Reclamation - short form - Help - Alt." {
run out/wslact mr -h
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslact - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslact memory-reclaim [-h]" ]
}
4 changes: 2 additions & 2 deletions tests/wslfetch.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

@test "wslfetch - Help" {
run out/wslfetch --help
[ "${lines[0]}" = "wslfetch - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslfetch - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslfetch [-hvcg] [-t THEME] [-o OPTIONS]" ]
}

@test "wslfetch - Help - Alt." {
run out/wslfetch -h
[ "${lines[0]}" = "wslfetch - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslfetch - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslfetch [-hvcg] [-t THEME] [-o OPTIONS]" ]
}
4 changes: 2 additions & 2 deletions tests/wslgsu.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
#wslgsu testing
@test "wslgsu - Help" {
run out/wslgsu --help
[ "${lines[0]}" = "wslgsu - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslgsu - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslgsu [-u USERNAME] [-n NAME] [-S] SERVICE/COMMAND" ]
[ "${lines[2]}" = "wslgsu [-hvw]" ]
}

@test "wslgsu - Help - Alt." {
run out/wslgsu -h
[ "${lines[0]}" = "wslgsu - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslgsu - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslgsu [-u USERNAME] [-n NAME] [-S] SERVICE/COMMAND" ]
[ "${lines[2]}" = "wslgsu [-hvw]" ]
}
4 changes: 2 additions & 2 deletions tests/wslsys.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

@test "wslsys - Help" {
run out/wslsys --help
[ "${lines[0]}" = "wslsys - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslsys - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[[ "${lines[1]}" =~ ^Usage\:\ .*wslsys\ \[\-VIbBFUWRKPSltTd\]\ \[\-s\]$ ]]
[[ "${lines[2]}" =~ ^.*wslsys\ \[\-hv\]\ \[\-n\ NAME\]$ ]]
}

@test "wslsys - Help - Alt." {
run out/wslsys -h
[ "${lines[0]}" = "wslsys - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslsys - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[[ "${lines[1]}" =~ ^Usage\:\ .*wslsys\ \[\-VIbBFUWRKPSltTd\]\ \[\-s\]$ ]]
[[ "${lines[2]}" =~ ^.*wslsys\ \[\-hv\]\ \[\-n\ NAME\]$ ]]
}
Expand Down
4 changes: 2 additions & 2 deletions tests/wslupath.bats
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

@test "wslupath - Help" {
run out/wslupath --help
[ "${lines[0]}" = "wslupath - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslupath - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslupath [-dOr] [-D|-A|-T|-S|-W|-s|-su|-H|-P|...NAME...]" ]
[ "${lines[2]}" = "wslupath [-h|-v|-R]" ]
}

@test "wslupath - Help - Alt." {
run out/wslupath -h
[ "${lines[0]}" = "wslupath - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslupath - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslupath [-dOr] [-D|-A|-T|-S|-W|-s|-su|-H|-P|...NAME...]" ]
[ "${lines[2]}" = "wslupath [-h|-v|-R]" ]
}
Expand Down
4 changes: 2 additions & 2 deletions tests/wslusc.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ teardown() {

@test "wslusc - Help" {
run out/wslusc --help
[ "${lines[0]}" = "wslusc - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslusc - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslusc [-IsgN] [-d SHORTCUT_FILE] [-e PATH] [-n NAME] [-i FILE] COMMAND" ]
[ "${lines[2]}" = "wslusc [-hv]" ]
}

@test "wslusc - Help - Alt." {
run out/wslusc -h
[ "${lines[0]}" = "wslusc - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslusc - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslusc [-IsgN] [-d SHORTCUT_FILE] [-e PATH] [-n NAME] [-i FILE] COMMAND" ]
[ "${lines[2]}" = "wslusc [-hv]" ]
}
Expand Down
4 changes: 2 additions & 2 deletions tests/wslvar.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

@test "wslvar - Help" {
run out/wslvar --help
[ "${lines[0]}" = "wslvar - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslvar - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslvar [-sl] NAME" ]
[ "${lines[2]}" = "wslvar [-hvSL]" ]
}

@test "wslvar - Help - Alt." {
run out/wslvar -h
[ "${lines[0]}" = "wslvar - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslvar - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[ "${lines[1]}" = "Usage: wslvar [-sl] NAME" ]
[ "${lines[2]}" = "wslvar [-hvSL]" ]
}
Expand Down
4 changes: 2 additions & 2 deletions tests/wslview.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ setup() {

@test "wslview - Help" {
run out/wslview --help
[ "${lines[0]}" = "wslview - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslview - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[[ "${lines[1]}" =~ ^Usage\:\ .*wslview\ \[\-ehsvurE\]$ ]]
[[ "${lines[2]}" =~ ^.*wslview\ \[\-E\ ENGINE\]\ LINK/FILE$ ]]
}

@test "wslview - Help - Alt." {
run out/wslview -h
[ "${lines[0]}" = "wslview - Part of wslu, a collection of utilities for Linux Subsystem for Windows (WSL)" ]
[ "${lines[0]}" = "wslview - Part of wslu, a collection of utilities for Windows Subsystem for Linux (WSL)" ]
[[ "${lines[1]}" =~ ^Usage\:\ .*wslview\ \[\-ehsvurE\]$ ]]
[[ "${lines[2]}" =~ ^.*wslview\ \[\-E\ ENGINE\]\ LINK/FILE$ ]]
}
Expand Down

0 comments on commit 2029cb6

Please sign in to comment.