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
play the classic Go Fish card game against the computer
4
4
5
5
# TLDR
6
6
7
-
**Generate fish completions**
7
+
**Start a game**
8
8
9
9
```go-fish```
10
10
11
-
**Specific package completions**
11
+
**Play in "professional" mode** (randomly decide who asks first)
12
12
13
-
```go-fish [package]```
13
+
```go-fish -p```
14
14
15
15
# SYNOPSIS
16
16
17
-
**go-fish**[_package_]
17
+
**go-fish**[**-p**]
18
18
19
19
# PARAMETERS
20
20
21
-
_PACKAGE_
22
-
> Package to generate completions for.
21
+
**-p**
22
+
> Professional mode: randomly determine who asks first, instead of always letting the player start.
23
23
24
-
**--help**
25
-
> Display help information.
24
+
# PREVIEW
25
+
26
+
```
27
+
Your hand: 3 3 7 9 K
28
+
Got any 7s? y
29
+
I had a 7? Here!
30
+
Books won: 1
31
+
```
26
32
27
33
# DESCRIPTION
28
34
29
-
**go-fish**generates fish shell completions for Go programs. It analyzes Go command-line flag definitions and creates fish completion scripts.
35
+
**go-fish**is a text-interface version of the traditional children's card game, part of the **bsd-games** collection. The player and the computer are each dealt seven cards, and take turns asking each other for cards of a given rank in order to collect "books" (all four cards of that rank).
30
36
31
-
The tool automates completion script generation from Go source code. It uses Go's flag package conventions to identify commands and options.
37
+
You may only ask for a rank you already hold at least one card of. If the opponent has none, you're told to "Go Fish!" and must draw from the remaining deck; drawing the requested rank lets you go again. Completed books are set aside and that rank becomes unavailable. The game ends when either player is out of cards, and whoever has collected the most books wins.
32
38
33
39
# CAVEATS
34
40
35
-
Requires Go flags package usage. Fish shell specific. May need customization.
41
+
Part of the bsd-games package, so availability depends on your distribution installing it. The computer opponent rarely bluffs and mostly plays honestly.
36
42
37
43
# HISTORY
38
44
39
-
go-fish was created to automate fish shell completion generation for Go command-line applications.
45
+
**go-fish** originates from the **BSD Games** collection first assembled in the 1980s-90s and later packaged for Linux distributions as **bsd-games**/**bsdgames**.
Copy file name to clipboardExpand all lines: assets/commands/grub-editenv.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,9 @@ Display all GRUB **environment variables**
34
34
**create**
35
35
> Create a new empty environment file
36
36
37
+
**-v**, **--verbose**
38
+
> Print verbose messages
39
+
37
40
# DESCRIPTION
38
41
39
42
**grub-editenv** manages GRUB's environment block (grubenv), which stores persistent variables across boots. The environment file is typically located at /boot/grub/grubenv or /boot/grub2/grubenv.
@@ -61,3 +64,13 @@ grub-editenv is part of GRUB 2's saved default mechanism, allowing boot preferen
Check if a file is an **x86_64 XNU** (macOS) kernel
28
32
29
33
```grub-file --is-x86_64-xnu [path/to/file]```
@@ -49,18 +53,24 @@ Check if a file is an **x86_64 XNU** (macOS) kernel
49
53
**--is-arm-linux**
50
54
> Check for ARM Linux kernel
51
55
56
+
**--is-arm64-linux**
57
+
> Check for ARM64 Linux kernel
58
+
52
59
**--is-x86-linux**
53
-
> Check for x86 Linux kernel
60
+
> Check for x86 Linux kernel (covers both 32 and 64-bit)
54
61
55
-
**--is-x86_64-linux**
56
-
> Check for x86_64 Linux kernel
62
+
**--is-x86-linux32**
63
+
> Check for x86 Linux kernel using the 32-bit-only boot protocol
57
64
58
65
**--is-x86_64-xnu**
59
-
> Check for macOS XNU kernel
66
+
> Check for macOS (XNU) x86_64 kernel
60
67
61
-
**--is-multiboot**
68
+
**--is-x86-multiboot**
62
69
> Check for Multiboot image
63
70
71
+
**--is-x86-multiboot2**
72
+
> Check for Multiboot2 image
73
+
64
74
# DESCRIPTION
65
75
66
76
**grub-file** checks whether a file is a bootable image of a specific type. It examines file headers and signatures to identify kernel images, EFI applications, and other bootable formats.
@@ -78,3 +88,13 @@ grub-file is part of GRUB 2, providing a utility for image type detection. This
@@ -42,7 +45,7 @@ The map is automatically generated but can be customized for special configurati
42
45
43
46
# CAVEATS
44
47
45
-
Deprecated in GRUB 2. May be needed for legacy setups. Disk order detection may vary.
48
+
Mostly unnecessary today since GRUB generates a device map on the fly and identifies disks by UUID or label in grub.cfg. Still useful to override detection, such as when a partition or logical volume is used as a virtual machine's disk.
46
49
47
50
# HISTORY
48
51
@@ -51,3 +54,13 @@ grub-mkdevicemap was developed as part of **GNU GRUB** for device mapping betwee
0 commit comments