ronin-repos 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.document +0 -1
- data/.github/workflows/ruby.yml +3 -2
- data/.gitignore +1 -0
- data/.rubocop.yml +4 -0
- data/.ruby-version +1 -1
- data/ChangeLog.md +15 -0
- data/Gemfile +5 -3
- data/README.md +19 -5
- data/Rakefile +10 -0
- data/data/completions/ronin-repos +139 -0
- data/data/completions/ronin-repos.yml +10 -0
- data/gemspec.yml +11 -2
- data/lib/ronin/repos/cache_dir.rb +1 -1
- data/lib/ronin/repos/class_dir.rb +5 -4
- data/lib/ronin/repos/cli/command.rb +1 -1
- data/lib/ronin/repos/cli/commands/completion.rb +61 -0
- data/lib/ronin/repos/cli/commands/install.rb +2 -2
- data/lib/ronin/repos/cli/commands/list.rb +15 -18
- data/lib/ronin/repos/cli/commands/new.rb +6 -2
- data/lib/ronin/repos/cli/commands/purge.rb +2 -2
- data/lib/ronin/repos/cli/commands/remove.rb +1 -1
- data/lib/ronin/repos/cli/commands/show.rb +93 -0
- data/lib/ronin/repos/cli/commands/update.rb +2 -2
- data/lib/ronin/repos/cli.rb +7 -4
- data/lib/ronin/repos/exceptions.rb +1 -1
- data/lib/ronin/repos/repository.rb +30 -1
- data/lib/ronin/repos/root.rb +1 -1
- data/lib/ronin/repos/version.rb +2 -2
- data/lib/ronin/repos.rb +19 -5
- data/man/ronin-repos-completion.1 +76 -0
- data/man/ronin-repos-completion.1.md +78 -0
- data/man/ronin-repos-install.1 +18 -32
- data/man/ronin-repos-install.1.md +14 -10
- data/man/ronin-repos-list.1 +18 -28
- data/man/ronin-repos-list.1.md +14 -10
- data/man/ronin-repos-new.1 +14 -19
- data/man/ronin-repos-new.1.md +8 -4
- data/man/ronin-repos-purge.1 +17 -28
- data/man/ronin-repos-purge.1.md +12 -8
- data/man/ronin-repos-remove.1 +16 -28
- data/man/ronin-repos-remove.1.md +12 -8
- data/man/ronin-repos-show.1 +48 -0
- data/man/ronin-repos-show.1.md +48 -0
- data/man/ronin-repos-update.1 +17 -31
- data/man/ronin-repos-update.1.md +14 -10
- data/man/ronin-repos.1 +17 -31
- data/man/ronin-repos.1.md +16 -12
- data/scripts/setup +58 -0
- metadata +17 -7
@@ -0,0 +1,93 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
#
|
5
|
+
# ronin-repos is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU Lesser General Public License as published
|
7
|
+
# by the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# ronin-repos is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU Lesser General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU Lesser General Public License
|
16
|
+
# along with ronin-repos. If not, see <https://www.gnu.org/licenses/>.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'ronin/repos/cli/command'
|
20
|
+
|
21
|
+
require 'command_kit/printing/fields'
|
22
|
+
require 'command_kit/printing/lists'
|
23
|
+
|
24
|
+
module Ronin
|
25
|
+
module Repos
|
26
|
+
class CLI
|
27
|
+
module Commands
|
28
|
+
#
|
29
|
+
# Prints information about a specific repository in the cache directory.
|
30
|
+
#
|
31
|
+
# ## Usage
|
32
|
+
#
|
33
|
+
# ronin-repos show [options] REPO
|
34
|
+
#
|
35
|
+
# ## Options
|
36
|
+
#
|
37
|
+
# -C, --cache-dir DIR Overrides the default cache directory
|
38
|
+
# -h, --help Print help information
|
39
|
+
#
|
40
|
+
# ## Arguments
|
41
|
+
#
|
42
|
+
# REPO The repository to display
|
43
|
+
#
|
44
|
+
# @since 0.2.0
|
45
|
+
#
|
46
|
+
class Show < Command
|
47
|
+
|
48
|
+
include CommandKit::Printing::Fields
|
49
|
+
include CommandKit::Printing::Lists
|
50
|
+
|
51
|
+
usage '[options] [REPO]'
|
52
|
+
|
53
|
+
argument :name, required: true,
|
54
|
+
usage: 'REPO',
|
55
|
+
desc: 'The repository to display'
|
56
|
+
|
57
|
+
description 'Prints information about a repository in the cache directory'
|
58
|
+
|
59
|
+
man_page 'ronin-repos-show.1'
|
60
|
+
|
61
|
+
#
|
62
|
+
# Runs the `ronin-repos show` command.
|
63
|
+
#
|
64
|
+
# @param [String] name
|
65
|
+
# The repo name to display.
|
66
|
+
#
|
67
|
+
def run(name=nil)
|
68
|
+
repo = cache_dir[name]
|
69
|
+
|
70
|
+
puts "[ #{repo} ]"
|
71
|
+
puts
|
72
|
+
|
73
|
+
indent do
|
74
|
+
print_fields(
|
75
|
+
'Name' => repo.name,
|
76
|
+
'URI' => repo.url,
|
77
|
+
'Files' => nil
|
78
|
+
)
|
79
|
+
|
80
|
+
indent do
|
81
|
+
print_list(repo.list_files)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
rescue RepositoryNotFound => error
|
85
|
+
print_error(error.message)
|
86
|
+
exit(-1)
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
#
|
3
|
-
# Copyright (c) 2021-
|
3
|
+
# Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
4
|
#
|
5
5
|
# ronin-repos is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -77,7 +77,7 @@ module Ronin
|
|
77
77
|
|
78
78
|
begin
|
79
79
|
repo.update
|
80
|
-
rescue CommandFailed => error
|
80
|
+
rescue CommandNotInstalled, CommandFailed => error
|
81
81
|
log_error("failed to update repository #{repo}: #{error.message}")
|
82
82
|
end
|
83
83
|
end
|
data/lib/ronin/repos/cli.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
#
|
3
|
-
# Copyright (c) 2021-
|
3
|
+
# Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
4
|
#
|
5
5
|
# ronin-repos is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -17,6 +17,7 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
require 'ronin/repos/version'
|
20
|
+
require 'ronin/core/cli/help/banner'
|
20
21
|
|
21
22
|
require 'command_kit/commands'
|
22
23
|
require 'command_kit/commands/auto_load'
|
@@ -37,13 +38,15 @@ module Ronin
|
|
37
38
|
namespace: "#{self}::Commands"
|
38
39
|
)
|
39
40
|
include CommandKit::Options::Version
|
41
|
+
include Core::CLI::Help::Banner
|
40
42
|
|
41
43
|
command_name 'ronin-repos'
|
42
44
|
version Ronin::Repos::VERSION
|
43
45
|
|
44
|
-
command_aliases['ls']
|
45
|
-
command_aliases['up']
|
46
|
-
command_aliases['rm']
|
46
|
+
command_aliases['ls'] = 'list'
|
47
|
+
command_aliases['up'] = 'update'
|
48
|
+
command_aliases['rm'] = 'remove'
|
49
|
+
command_aliases['info'] = 'show'
|
47
50
|
|
48
51
|
end
|
49
52
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
#
|
3
|
-
# Copyright (c) 2021-
|
3
|
+
# Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
4
|
#
|
5
5
|
# ronin-repos is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
#
|
3
|
-
# Copyright (c) 2021-
|
3
|
+
# Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
4
|
#
|
5
5
|
# ronin-repos is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -19,6 +19,7 @@
|
|
19
19
|
require 'ronin/repos/exceptions'
|
20
20
|
|
21
21
|
require 'fileutils'
|
22
|
+
require 'time'
|
22
23
|
|
23
24
|
module Ronin
|
24
25
|
module Repos
|
@@ -138,6 +139,34 @@ module Ronin
|
|
138
139
|
return repo
|
139
140
|
end
|
140
141
|
|
142
|
+
#
|
143
|
+
# The git URL of the repository.
|
144
|
+
#
|
145
|
+
# @return [String]
|
146
|
+
# The `git:` or `https://` URL for the repository.
|
147
|
+
#
|
148
|
+
# @since 0.2.0
|
149
|
+
#
|
150
|
+
def url
|
151
|
+
Dir.chdir(@path) do
|
152
|
+
`git remote get-url origin`.chomp
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
#
|
157
|
+
# Determines when the repository was last updated.
|
158
|
+
#
|
159
|
+
# @return [Time]
|
160
|
+
# The timestamp of the last commit will be returned.
|
161
|
+
#
|
162
|
+
# @since 0.2.0
|
163
|
+
#
|
164
|
+
def last_updated_at
|
165
|
+
Dir.chdir(@path) do
|
166
|
+
Time.parse(`git log --date=iso8601 --pretty="%cd" -1`)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
141
170
|
#
|
142
171
|
# Pulls down new git commits.
|
143
172
|
#
|
data/lib/ronin/repos/root.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
#
|
3
|
-
# Copyright (c) 2021-
|
3
|
+
# Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
4
|
#
|
5
5
|
# ronin-repos is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/repos/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
#
|
3
|
-
# Copyright (c) 2021-
|
3
|
+
# Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
4
|
#
|
5
5
|
# ronin-repos is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -19,6 +19,6 @@
|
|
19
19
|
module Ronin
|
20
20
|
module Repos
|
21
21
|
# ronin-repos version
|
22
|
-
VERSION = '0.
|
22
|
+
VERSION = '0.2.0'
|
23
23
|
end
|
24
24
|
end
|
data/lib/ronin/repos.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
#
|
3
|
-
# Copyright (c) 2021-
|
3
|
+
# Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
4
|
#
|
5
5
|
# ronin-repos is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -25,7 +25,21 @@ module Ronin
|
|
25
25
|
# @api public
|
26
26
|
#
|
27
27
|
module Repos
|
28
|
-
|
28
|
+
#
|
29
|
+
# The global repositories cache directory.
|
30
|
+
#
|
31
|
+
# @return [CacheDir]
|
32
|
+
# The global repositories cache directory (`~/.cache/ronin-repos`).
|
33
|
+
#
|
34
|
+
# @note This method lazy initializes {CacheDir} when first called.
|
35
|
+
#
|
36
|
+
# @api private
|
37
|
+
#
|
38
|
+
# @since 0.2.0
|
39
|
+
#
|
40
|
+
def self.cache_dir
|
41
|
+
@cache_dir ||= CacheDir.new
|
42
|
+
end
|
29
43
|
|
30
44
|
#
|
31
45
|
# Finds the first matching file.
|
@@ -42,7 +56,7 @@ module Ronin
|
|
42
56
|
# # => "/home/user/.cache/ronin-repos/foo-repo/wordlists/wordlist.txt"
|
43
57
|
#
|
44
58
|
def self.find_file(path)
|
45
|
-
|
59
|
+
cache_dir.find_file(path)
|
46
60
|
end
|
47
61
|
|
48
62
|
#
|
@@ -62,7 +76,7 @@ module Ronin
|
|
62
76
|
# # "/home/user/.cache/ronin-repos/bar-repo/wordlists/beers.txt"]
|
63
77
|
#
|
64
78
|
def self.glob(pattern,&block)
|
65
|
-
|
79
|
+
cache_dir.glob(pattern,&block)
|
66
80
|
end
|
67
81
|
|
68
82
|
#
|
@@ -75,7 +89,7 @@ module Ronin
|
|
75
89
|
# The matching files within all repositories.
|
76
90
|
#
|
77
91
|
def self.list_files(pattern='{**/}*.*')
|
78
|
-
|
92
|
+
cache_dir.list_files(pattern)
|
79
93
|
end
|
80
94
|
end
|
81
95
|
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-repos-completion 1 "2024-01-01" Ronin Repos "User Manuals"
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-repos\-completion \- Manages shell completion rules for \fBronin\-repos\fR
|
7
|
+
.SH SYNOPSIS
|
8
|
+
.PP
|
9
|
+
\fBronin\-repos completion\fR \[lB]\fIoptions\fP\[rB]
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.PP
|
12
|
+
The \fBronin\-repos completion\fR command can print, install, or uninstall shell
|
13
|
+
completion rules for the \fBronin\-repos\fR command\.
|
14
|
+
.PP
|
15
|
+
Supports installing completion rules for Bash or Zsh shells\.
|
16
|
+
Completion rules for the Fish shell is currently not supported\.
|
17
|
+
.SS ZSH SUPPORT
|
18
|
+
.PP
|
19
|
+
Zsh users will have to add the following lines to their \fB\[ti]\[sl]\.zshrc\fR file in
|
20
|
+
order to enable Zsh\[cq]s Bash completion compatibility layer:
|
21
|
+
.PP
|
22
|
+
.RS 4
|
23
|
+
.EX
|
24
|
+
autoload \-Uz \[pl]X compinit && compinit
|
25
|
+
autoload \-Uz \[pl]X bashcompinit && bashcompinit
|
26
|
+
.EE
|
27
|
+
.RE
|
28
|
+
.SH OPTIONS
|
29
|
+
.TP
|
30
|
+
\fB\-\-print\fR
|
31
|
+
Prints the shell completion file\.
|
32
|
+
.TP
|
33
|
+
\fB\-\-install\fR
|
34
|
+
Installs the shell completion file\.
|
35
|
+
.TP
|
36
|
+
\fB\-\-uninstall\fR
|
37
|
+
Uninstalls the shell completion file\.
|
38
|
+
.TP
|
39
|
+
\fB\-h\fR, \fB\-\-help\fR
|
40
|
+
Prints help information\.
|
41
|
+
.SH ENVIRONMENT
|
42
|
+
.TP
|
43
|
+
\fIPREFIX\fP
|
44
|
+
Specifies the root prefix for the file system\.
|
45
|
+
.TP
|
46
|
+
\fIHOME\fP
|
47
|
+
Specifies the home directory of the user\. Ronin will search for the
|
48
|
+
\fB\[ti]\[sl]\.cache\[sl]ronin\-repos\fR cache directory within the home directory\.
|
49
|
+
.TP
|
50
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
51
|
+
Specifies the data directory to use\. Defaults to \fB\[Do]HOME\[sl]\.local\[sl]share\fR\.
|
52
|
+
.SH FILES
|
53
|
+
.TP
|
54
|
+
\fB\[ti]\[sl]\.local\[sl]share\[sl]bash\-completion\[sl]completions\[sl]\fR
|
55
|
+
The user\-local installation directory for Bash completion files\.
|
56
|
+
.TP
|
57
|
+
\fB\[sl]usr\[sl]local\[sl]share\[sl]bash\-completion\[sl]completions\[sl]\fR
|
58
|
+
The system\-wide installation directory for Bash completions files\.
|
59
|
+
.TP
|
60
|
+
\fB\[sl]usr\[sl]local\[sl]share\[sl]zsh\[sl]site\-functions\[sl]\fR
|
61
|
+
The installation directory for Zsh completion files\.
|
62
|
+
.SH EXAMPLES
|
63
|
+
.TP
|
64
|
+
\fBronin\-repos completion \-\-print\fR
|
65
|
+
Prints the shell completion rules instead of installing them\.
|
66
|
+
.TP
|
67
|
+
\fBronin\-repos completion \-\-install\fR
|
68
|
+
Installs the shell completion rules for \fBronin\-repos\fR\.
|
69
|
+
.TP
|
70
|
+
\fBronin\-repos completion \-\-uninstall\fR
|
71
|
+
Uninstalls the shell completion rules for \fBronin\-repos\fR\.
|
72
|
+
.SH AUTHOR
|
73
|
+
.PP
|
74
|
+
Postmodern
|
75
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
76
|
+
.ME
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# ronin-repos-completion 1 "2024-01-01" Ronin Repos "User Manuals"
|
2
|
+
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-repos-completion - Manages shell completion rules for `ronin-repos`
|
6
|
+
|
7
|
+
## SYNOPSIS
|
8
|
+
|
9
|
+
`ronin-repos completion` [*options*]
|
10
|
+
|
11
|
+
## DESCRIPTION
|
12
|
+
|
13
|
+
The `ronin-repos completion` command can print, install, or uninstall shell
|
14
|
+
completion rules for the `ronin-repos` command.
|
15
|
+
|
16
|
+
Supports installing completion rules for Bash or Zsh shells.
|
17
|
+
Completion rules for the Fish shell is currently not supported.
|
18
|
+
|
19
|
+
### ZSH SUPPORT
|
20
|
+
|
21
|
+
Zsh users will have to add the following lines to their `~/.zshrc` file in
|
22
|
+
order to enable Zsh's Bash completion compatibility layer:
|
23
|
+
|
24
|
+
autoload -Uz +X compinit && compinit
|
25
|
+
autoload -Uz +X bashcompinit && bashcompinit
|
26
|
+
|
27
|
+
## OPTIONS
|
28
|
+
|
29
|
+
`--print`
|
30
|
+
: Prints the shell completion file.
|
31
|
+
|
32
|
+
`--install`
|
33
|
+
: Installs the shell completion file.
|
34
|
+
|
35
|
+
`--uninstall`
|
36
|
+
: Uninstalls the shell completion file.
|
37
|
+
|
38
|
+
`-h`, `--help`
|
39
|
+
: Prints help information.
|
40
|
+
|
41
|
+
## ENVIRONMENT
|
42
|
+
|
43
|
+
*PREFIX*
|
44
|
+
: Specifies the root prefix for the file system.
|
45
|
+
|
46
|
+
*HOME*
|
47
|
+
: Specifies the home directory of the user. Ronin will search for the
|
48
|
+
`~/.cache/ronin-repos` cache directory within the home directory.
|
49
|
+
|
50
|
+
*XDG_DATA_HOME*
|
51
|
+
: Specifies the data directory to use. Defaults to `$HOME/.local/share`.
|
52
|
+
|
53
|
+
## FILES
|
54
|
+
|
55
|
+
`~/.local/share/bash-completion/completions/`
|
56
|
+
: The user-local installation directory for Bash completion files.
|
57
|
+
|
58
|
+
`/usr/local/share/bash-completion/completions/`
|
59
|
+
: The system-wide installation directory for Bash completions files.
|
60
|
+
|
61
|
+
`/usr/local/share/zsh/site-functions/`
|
62
|
+
: The installation directory for Zsh completion files.
|
63
|
+
|
64
|
+
## EXAMPLES
|
65
|
+
|
66
|
+
`ronin-repos completion --print`
|
67
|
+
: Prints the shell completion rules instead of installing them.
|
68
|
+
|
69
|
+
`ronin-repos completion --install`
|
70
|
+
: Installs the shell completion rules for `ronin-repos`.
|
71
|
+
|
72
|
+
`ronin-repos completion --uninstall`
|
73
|
+
: Uninstalls the shell completion rules for `ronin-repos`.
|
74
|
+
|
75
|
+
## AUTHOR
|
76
|
+
|
77
|
+
Postmodern <postmodern.mod3@gmail.com>
|
78
|
+
|
data/man/ronin-repos-install.1
CHANGED
@@ -1,68 +1,54 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
3
|
.TH ronin-repos-install 1 "2023-02-01" Ronin Repos "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-repos\-install \- Installs a git repository into the cache directory
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
|
8
|
-
\fBronin-repos install\fR \[lB]\fIoptions\fP\[rB] \fIURI\fP
|
9
|
-
.LP
|
8
|
+
.PP
|
9
|
+
\fBronin\-repos install\fR \[lB]\fIoptions\fP\[rB] \fIURI\fP
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
12
|
Downloads a repository\.
|
14
|
-
.LP
|
15
13
|
.SH ARGUMENTS
|
16
|
-
.LP
|
17
14
|
.TP
|
18
15
|
\fIURI\fP
|
19
16
|
The URI to the git repository\.
|
20
|
-
.LP
|
21
17
|
.SH OPTIONS
|
22
|
-
.LP
|
23
18
|
.TP
|
24
|
-
\fB
|
19
|
+
\fB\-C\fR, \fB\-\-cache\-dir\fR \fIDIR\fP
|
25
20
|
Overrides the default cache directory\.
|
26
|
-
.LP
|
27
21
|
.TP
|
28
|
-
\fB
|
22
|
+
\fB\-h\fR, \fB\-\-help\fR
|
29
23
|
Prints help information\.
|
30
|
-
.LP
|
31
24
|
.SH ENVIRONMENT
|
32
|
-
.LP
|
33
25
|
.TP
|
34
26
|
\fIHOME\fP
|
35
27
|
Specifies the home directory of the user\. Ronin will search for the
|
36
|
-
\fB
|
37
|
-
.LP
|
28
|
+
\fB\[ti]\[sl]\.cache\[sl]ronin\-repos\fR cache directory within the home directory\.
|
38
29
|
.TP
|
39
30
|
\fIXDG\[ru]CACHE\[ru]HOME\fP
|
40
|
-
Specifies the cache directory to use\. Defaults to \fB
|
41
|
-
.LP
|
31
|
+
Specifies the cache directory to use\. Defaults to \fB\[Do]HOME\[sl]\.cache\fR\.
|
42
32
|
.SH FILES
|
43
|
-
.LP
|
44
33
|
.TP
|
45
|
-
\fB
|
34
|
+
\fB\[ti]\[sl]\.cache\[sl]ronin\-repos\[sl]\fR
|
46
35
|
Installation directory for all repositories\.
|
47
|
-
.LP
|
48
36
|
.SH EXAMPLES
|
49
|
-
.LP
|
50
37
|
.TP
|
51
|
-
\fBronin
|
38
|
+
\fBronin\-repos install https:\[sl]\[sl]github\.com\[sl]user\[sl]repo\.git\fR
|
52
39
|
Installs a public repository over HTTPS\.
|
53
|
-
.LP
|
54
40
|
.TP
|
55
|
-
\fBronin
|
41
|
+
\fBronin\-repos install git\[at]example\.com:\[sl]home\[sl]secret\[sl]repo\fR
|
56
42
|
Installs a private repository over SSH\.
|
57
|
-
.LP
|
58
43
|
.SH AUTHOR
|
59
|
-
.LP
|
60
44
|
.PP
|
61
45
|
Postmodern
|
62
46
|
.MT postmodern\.mod3\[at]gmail\.com
|
63
47
|
.ME
|
64
|
-
.LP
|
65
48
|
.SH SEE ALSO
|
66
|
-
.LP
|
67
49
|
.PP
|
68
|
-
|
50
|
+
.BR ronin\-repos (1)
|
51
|
+
.BR ronin\-repos\-list (1)
|
52
|
+
.BR ronin\-repos\-remove (1)
|
53
|
+
.BR ronin\-repos\-update (1)
|
54
|
+
.BR ronin\-repos\-purge (1)
|
@@ -1,5 +1,9 @@
|
|
1
1
|
# ronin-repos-install 1 "2023-02-01" Ronin Repos "User Manuals"
|
2
2
|
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-repos-install - Installs a git repository into the cache directory
|
6
|
+
|
3
7
|
## SYNOPSIS
|
4
8
|
|
5
9
|
`ronin-repos install` [*options*] *URI*
|
@@ -11,37 +15,37 @@ Downloads a repository.
|
|
11
15
|
## ARGUMENTS
|
12
16
|
|
13
17
|
*URI*
|
14
|
-
|
18
|
+
: The URI to the git repository.
|
15
19
|
|
16
20
|
## OPTIONS
|
17
21
|
|
18
22
|
`-C`, `--cache-dir` *DIR*
|
19
|
-
|
23
|
+
: Overrides the default cache directory.
|
20
24
|
|
21
25
|
`-h`, `--help`
|
22
|
-
|
26
|
+
: Prints help information.
|
23
27
|
|
24
28
|
## ENVIRONMENT
|
25
29
|
|
26
30
|
*HOME*
|
27
|
-
|
28
|
-
|
31
|
+
: Specifies the home directory of the user. Ronin will search for the
|
32
|
+
`~/.cache/ronin-repos` cache directory within the home directory.
|
29
33
|
|
30
34
|
*XDG_CACHE_HOME*
|
31
|
-
|
35
|
+
: Specifies the cache directory to use. Defaults to `$HOME/.cache`.
|
32
36
|
|
33
37
|
## FILES
|
34
38
|
|
35
39
|
`~/.cache/ronin-repos/`
|
36
|
-
|
40
|
+
: Installation directory for all repositories.
|
37
41
|
|
38
42
|
## EXAMPLES
|
39
43
|
|
40
44
|
`ronin-repos install https://github.com/user/repo.git`
|
41
|
-
|
45
|
+
: Installs a public repository over HTTPS.
|
42
46
|
|
43
47
|
`ronin-repos install git@example.com:/home/secret/repo`
|
44
|
-
|
48
|
+
: Installs a private repository over SSH.
|
45
49
|
|
46
50
|
## AUTHOR
|
47
51
|
|
@@ -49,4 +53,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
49
53
|
|
50
54
|
## SEE ALSO
|
51
55
|
|
52
|
-
ronin-repos(1) ronin-repos-list(1) ronin-repos-remove(1) ronin-repos-update(1) ronin-repos-purge(1)
|
56
|
+
[ronin-repos](ronin-repos.1.md) [ronin-repos-list](ronin-repos-list.1.md) [ronin-repos-remove](ronin-repos-remove.1.md) [ronin-repos-update](ronin-repos-update.1.md) [ronin-repos-purge](ronin-repos-purge.1.md)
|
data/man/ronin-repos-list.1
CHANGED
@@ -1,58 +1,48 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
3
|
.TH ronin-repos-list 1 "2023-02-01" Ronin Repos "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-repos\-list \- Lists all repositories in the cache directory
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
|
8
|
-
\fBronin-repos list\fR \[lB]\fIoptions\fP\[rB] \[lB]\fIREPO\fP\[rB]
|
9
|
-
.LP
|
8
|
+
.PP
|
9
|
+
\fBronin\-repos list\fR \[lB]\fIoptions\fP\[rB] \[lB]\fINAME\fP\[rB]
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
12
|
Lists all downloaded repositories\.
|
14
|
-
.LP
|
15
13
|
.SH ARGUMENTS
|
16
|
-
.LP
|
17
14
|
.TP
|
18
|
-
\
|
15
|
+
\fINAME\fP
|
19
16
|
The optional repository name to only list\.
|
20
|
-
.LP
|
21
17
|
.SH OPTIONS
|
22
|
-
.LP
|
23
18
|
.TP
|
24
|
-
\fB
|
19
|
+
\fB\-C\fR, \fB\-\-cache\-dir\fR \fIDIR\fP
|
25
20
|
Overrides the default cache directory\.
|
26
|
-
.LP
|
27
21
|
.TP
|
28
|
-
\fB
|
22
|
+
\fB\-h\fR, \fB\-\-help\fR
|
29
23
|
Prints help information\.
|
30
|
-
.LP
|
31
24
|
.SH ENVIRONMENT
|
32
|
-
.LP
|
33
25
|
.TP
|
34
26
|
\fIHOME\fP
|
35
27
|
Specifies the home directory of the user\. Ronin will search for the
|
36
|
-
\fB
|
37
|
-
.LP
|
28
|
+
\fB\[ti]\[sl]\.cache\[sl]ronin\-repos\fR cache directory within the home directory\.
|
38
29
|
.TP
|
39
30
|
\fIXDG\[ru]CACHE\[ru]HOME\fP
|
40
|
-
Specifies the cache directory to use\. Defaults to \fB
|
41
|
-
.LP
|
31
|
+
Specifies the cache directory to use\. Defaults to \fB\[Do]HOME\[sl]\.cache\fR\.
|
42
32
|
.SH FILES
|
43
|
-
.LP
|
44
33
|
.TP
|
45
|
-
\fB
|
34
|
+
\fB\[ti]\[sl]\.cache\[sl]ronin\-repos\fR
|
46
35
|
Installation directory for repositories\.
|
47
|
-
.LP
|
48
36
|
.SH AUTHOR
|
49
|
-
.LP
|
50
37
|
.PP
|
51
38
|
Postmodern
|
52
39
|
.MT postmodern\.mod3\[at]gmail\.com
|
53
40
|
.ME
|
54
|
-
.LP
|
55
41
|
.SH SEE ALSO
|
56
|
-
.LP
|
57
42
|
.PP
|
58
|
-
|
43
|
+
.BR ronin\-repos (1)
|
44
|
+
.BR ronin\-repos\-install (1)
|
45
|
+
.BR ronin\-repos\-remove (1)
|
46
|
+
.BR ronin\-repos\-show (1)
|
47
|
+
.BR ronin\-repos\-update (1)
|
48
|
+
.BR ronin\-repos\-purge (1)
|