aboutsummaryrefslogtreecommitdiff
blob: 5f085a82aa032f71a80f6299cad60fb784212837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
.TH "GENTOOSTATS-CLI" "1" "Jan 2017" "" "Gentoostats"
.SH "NAME"
gentoostats\-cli \- Command\-line interface to request gentoostats statistics
.SH "SYNOPSIS"
.TP
\fBgentoostats\-cli\fR [\fIoptions\fR] \fBlist\fR [\fIlist-options\fR] \
[\fBarch\fR | \fBpackage\fR | \fBlang\fR | \fBuse\fR | \fBmirror\fR | \
\fBfeature\fR | \fBrepo\fR]
.TP
\fBgentoostats\-cli\fR [\fIoptions\fR] \fBsearch\fR [\fIsearch-options\fR]
.SH "DESCRIPTION"
gentoostats\-cli is a command line utility for requesting various
statistics from a gentoostats server. The results are presented in the
JSON format.
.SH "DEFAULT OPTIONS"
.TP
.B \-s, \-\-server
Host name of the remote gentoostats server
.TP
.B \-p, \-\-port
Port number of the remote gentoostats server
.TP
.B \-u, \-\-url
URL of the remote gentoostats server
.TP
.B \-h, \-\-help
Show the help information
.SH "COMMANDS"
.TP
.B list
The list command allows the following statistics to be queried:
.RS
.TP
.B arch
The host count statistics of ARCH keywords
.TP
.B package
The statistics for the total number of package versions, packages,
categories, hosts, and the most popular categories
.TP
.B lang
The host count statistics for the LANG environment variable
.TP
.B use
The total number of USE flags
.TP
.B mirror
The host count statistics for Gentoo mirrors
.TP
.B feature
The host count statistics for package manager features
.TP
.B repo
The host count statistics for package repositories
.RE
.TP
.B search
The search command returns the host count statistics for package
versions along with their repository information. The results can be
further filtered using combinations of the search command options.
.SH "OPTIONS for list command"
.TP
.B \-h, \-\-help
Show the help information for the \fBlist\fR command
.SH "OPTIONS for search command"
.TP
.B \-c, \-\-category
Filter the results by category
.TP
.B \-p, \-\-package
Filter the results by package name
.TP
.B \-v, \-\-version
Filter the results by package version
.TP
.B \-, \-\-repo
Filter the results by package repository
.TP
.B \-\-min_hosts
Filter the results by the minimum number of hosts per package version
.TP
.B \-\-max_hosts
Filter the results by the maximum number of hosts per package version
.TP
.B \-h, \-\-help
Show the help message for the \fBsearch\fR command
.SH "EXAMPLES"
.TP
The following are examples for the \fBlist\fR command:
.RS
.PP
.B $ gentoostats\-cli list arch
.nf
Arch
{'amd64': {'HOSTS': 4}, 'x86': {'HOSTS': 1}}
.fi
.PP
.B $ gentoostats\-cli list package
.nf
Categories
 {'CPV_COUNT': 2244,
  'CP_COUNT': 1904,
  'C_COUNT': 100,
  'HOST_COUNT': 5,
  'TOP_C': [{'CAT': 'app-admin', 'HOST_COUNT': 5},
            {'CAT': 'app-arch', 'HOST_COUNT': 5},
            {'CAT': 'app-crypt', 'HOST_COUNT': 5},
            {'CAT': 'app-editors', 'HOST_COUNT': 5},
            {'CAT': 'app-emacs', 'HOST_COUNT': 5}]}
.fi
.RE
.TP
The following are examples for the \fBsearch\fR command:
.RS
.PP
.B $ gentoostats\-cli search \-\-package gentoostats
.nf
Search results
[{'CAT': 'app-portage',
  'HOSTS': 5,
  'PKG': 'gentoostats',
  'REPO': 'gentoo',
  'VER': '9999'},
{'CAT': 'www-apps',
 'HOSTS': 2,
 'PKG': 'gentoostats',
 'REPO': 'gentoo',
 'VER': '9999'}]
.fi
.PP
.B $ gentoostats\-cli search \-\-c sys-apps \-\-p portage \-\-v 2.3.0 \-\-r gentoo \-\-min_hosts 4
.nf
Search results
[{'CAT': 'sys-apps',
  'HOSTS': 5,
  'PKG': 'portage',
  'REPO': 'gentoo',
  'VER': '2.3.0'}]
.fi
.RE
.SH "BUGS"
Please report bugs via https://bugs.gentoo.org/
.SH "AUTHOR"
Göktürk Yüksek <gokturk@gentoo.org>
.SH "SEE ALSO"
\fBgentoostats\-send\fR(1)