Merge pull request #91 from Jguer/revert-82-master

Revert "Add missing --bottomup option"
This commit is contained in:
J Guerreiro 2018-01-06 22:46:47 +09:00 committed by GitHub
commit 65c0c52a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 123 additions and 63 deletions

2
cmd.go
View File

@ -190,8 +190,6 @@ func parser() (op string, options []string, packages []string, changedConfig boo
config.TimeUpdate = false config.TimeUpdate = false
case "--topdown": case "--topdown":
config.SortMode = TopDown config.SortMode = TopDown
case "--bottomup":
config.SortMode = BottomUp
case "--complete": case "--complete":
config.Shell = "sh" config.Shell = "sh"
_ = complete() _ = complete()

184
yay.8
View File

@ -1,61 +1,60 @@
'\" t '\" t
.TH "YAY" "8" "2017-01-05" "Yay v2\&.219" "Yay Manual" .TH "YAY" "8" "04/12/2017" "yay" "yay Manual"
.nh .nh
.ad l .ad l
.SH "NAME" .SH "NAME"
yay \- AUR Helper written in go yay \- AUR Helper written in go.
.SH "SYNOPSIS" .SH "SYNOPSIS"
.sp .sp
\fIyay\fR <operation> [options] [targets] \fIyay\fR <operation> [options] [packages]
.sp
\fIyay\fR <search pattern>
.SH "DESCRIPTION" .SH "DESCRIPTION"
.sp .sp
Yay is a Pacman wrapper with AUR support\&. It passes options to Makepkg and Pacman after resolving packages to install/upgrade\&. yay is a pacman wrapper with AUR support. It passes options to makepkg and pacman after resolving packages to install/upgrade.
.sp .SH "OPERATIONS"
This manpage only covers options unique to Yay\&. For other options see \fBpacman(8)\fR\&.
.SH "YAY OPERATIONS"
.PP .PP
\fB\-Y, --yay\fR \fB\-Cd\fR
.RS 4 .RS 4
Perform yay specific operations\&. This is the default if no other operation is selected\&. Remove uneeded dependencies\&.
.RE .RE
.PP .PP
\fB\-G, --getpkgbuild\fR \fB\-G\fR
.RS 4 .RS 4
Downloads PKGBUILD from ABS or AUR\&. Downloads PKGBUILD from ABS or AUR.
.RE .RE
.PP .PP
If no operation is selected -Y will be assumed\&. \fB\-Qstats\fR
.SH "EXTENDED PACMAN OPERATIONS"
.PP
\fB\-S, -Si, -Ss, -Su\fR
.RS 4 .RS 4
These operations are extended to support the AUR as well as repo packages\&. Displays information about installed packages and system health. If there are orphaned or out-of-date packages, warnings will be displayed\&.
.RE .RE
.PP .PP
\fB\-R\fR \fB\-Ss\fR
.RS 4 .RS 4
Yay will also remove cached data about devel packages\&. Search for package in repositories and AUR\&.
.SH "YAY OPTIONS (APPLY TO -Y AND --YAY)" .RE
.PP
\fB\-Si\fR
.RS 4
Show information for a package in the repositories or AUR\&.
.RE
.PP
\fB\-Syu\fR
.RS 4
Upgrade packages from the repositories and the AUR\&.
.RE
.PP
\fB\-h, \-\-help\fR
.RS 4
Show yay usage\&.
.RE
.PP .PP
\fB<NO OPERATION>\fR \fB<NO OPERATION>\fR
.RS 4 .RS 4
Displays List of packages matching search terms and prompts the user on which packages to install(yogurt mode)\&. Displays menu for package install selection (yogurt mode)\&.
.RE .RE
.PP .PP
\fB\--stats\fR All other operations will be passed to pacman\&.
.RS 4
Displays information about installed packages and system health\&. If there are orphaned or out-of-date packages, warnings will be displayed\&.
.RE
.PP .PP
\fB\-\-printconfig\fR .SH "OPTIONS"
.RS 4
Prints current yay configuration\&.
.RE
.SH "PERMANENT CONFIGURATION SETTINGS"
.PP
These options will be saved to disk and reapplied next time Yay is ran\&.
.PP .PP
\fB\-\-topdown\fR \fB\-\-topdown\fR
.RS 4 .RS 4
@ -96,52 +95,115 @@ Check package's modification date and version\&.
.RS 4 .RS 4
Check only package version change\&. Check only package version change\&.
.RE .RE
.PP
\fB\-\-printconfig\fR
.RS 4
Prints current yay configuration\&.
.RE
.PP
\fB\-\-noconfirm\fR
.RS 4
No user intervention needed unless a package conflict happens. This option will be passed to pacman and makepkg\&.
.RE
.PP
All other options will be passed to pacman\&.
.PP
.SH "EXAMPLES" .SH "EXAMPLES"
.PP .sp
yay \fIfoo\fR
.RS 4 .RS 4
Search and install from the repos and the \fBAUR\fR\ using yogurt mode\&. .ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Sync and update packages from repository and AUR:
yay \-Syu
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Check installed packages health:
yay \-Qstats
.RE .RE
.PP .PP
yay -Syu .sp
For a package called \fIname\fR:
.sp
.RS 4 .RS 4
Update package list and upgrade all currently installed repo and \fBAUR\fR\&. .ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Search:
yay \-Ss \fIname\fR
.RE .RE
.PP .sp
yay -S \fIfoo\fR
.RS 4 .RS 4
Installs package \fIfoo\fR from the repos or the \fBAUR\fR\&. .ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Install:
yay \-S \fIname\fR
.RE .RE
.PP .sp
yay -Ss \fIfoo\fR
.RS 4 .RS 4
Searches for package \fIfoo\fR on the repos or the \fBAUR\fR\&. .ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Install without confirmations:
yay \-S \-\-noconfirm \fIname\fR
.RE .RE
.PP .sp
yay -Si \fIfoo\fR
.RS 4 .RS 4
Gets information about package \fIfoo\fR from the repos or the \fBAUR\fR\&. .ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Get information about a package:
yay \-Si \fIname\fR
.RE .RE
.PP .sp
yay -S \fIfoo\fR
.RS 4 .RS 4
Installs package \fIfoo\fR from the repos or the \fBAUR\fR\&. .ie n \{\
.RE \h'-04'\(bu\h'+03'\c
.PP .\}
yay --stats .el \{\
.RS 4 .sp -1
Shows statistics for installed packages and system health\&. .IP \(bu 2.3
.\}
Search and install using yogurt mode:
yay \fIname\fR
.RE .RE
.SH "SEE ALSO" .SH "SEE ALSO"
.sp .sp
\fBmakepkg\fR(8) \fBmakepkg\fR(8)
.sp
\fBpacman\fR(8) \fBpacman\fR(8)
\fBpacman\&.conf\fR(5) .sp
.PP \fBpacman.conf\fR(5)
See the arch wiki at https://wiki\&.archlinux\&.org/index\&.php/Arch_User_Repository for more info on the \fBAUR\fR\&.
.SH "BUGS"
.PP
Please report bugs to our GitHub page https://github\&.com/Jguer/yay
.SH "AUTHORS" .SH "AUTHORS"
.sp .sp
Jguer <joaogg3@gmail\&.com> Jguer <joaogg3@gmail\&.com>