cuibuwei
43cc4c4307
Merge 41b6238234
into 7908a678df
2024-04-13 08:36:35 +00:00
cuibuwei
41b6238234
chore: fix function names in comment
...
Signed-off-by: cuibuwei <cuibuwei@gmail.com>
2024-04-13 16:36:00 +08:00
Chris Allen Lane
7908a678df
Merge pull request #742 from cheat/dependabot/go_modules/github.com/cloudflare/circl-1.3.7
...
chore(deps): bump github.com/cloudflare/circl from 1.3.6 to 1.3.7
2024-01-08 15:34:48 -05:00
dependabot[bot]
7c0eacb53d
chore(deps): bump github.com/cloudflare/circl from 1.3.6 to 1.3.7
...
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl ) from 1.3.6 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases )
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.6...v1.3.7 )
---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 16:53:49 +00:00
Chris Allen Lane
4bf804ac60
Merge pull request #741 from cheat/dependabot/go_modules/golang.org/x/crypto-0.17.0
...
chore(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0
2023-12-19 14:51:50 -05:00
dependabot[bot]
33c5918087
chore(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-19 00:07:38 +00:00
Christopher Allen Lane
d34177729d
chore: bump version to 4.4.2
2023-12-15 12:48:39 -05:00
Chris Allen Lane
7fa50328d7
Merge pull request #740 from chrisallenlane/chroma
...
chore(deps): bump chroma to v2 #735
2023-12-13 12:59:52 -05:00
Christopher Allen Lane
1790aec85d
chore(deps): bump chroma to v2 #735
...
Bump `alecthomas/chroma` to `v2`:
https://github.com/cheat/cheat/issues/735
2023-12-13 12:54:32 -05:00
Mikel Olasagasti Uranga
6bf51e758f
Use yaml.v3 rather than .v2 and .v1
2023-12-13 09:57:58 -05:00
Christopher Allen Lane
242da8c89a
chore(build): remove plan9
support
...
Remove `plan9` support from the `Makefile` because the executable now
fails to build.
2023-12-13 09:45:21 -05:00
Chris Allen Lane
2294f40ee0
Merge pull request #739 from chrisallenlane/v4.4.1
...
V4.4.1
2023-12-13 09:17:16 -05:00
Christopher Allen Lane
fe25019b14
chore: bump version to 4.4.1
2023-12-13 09:12:14 -05:00
Christopher Allen Lane
bfb071c0b2
chore(lint): various changes to appease revive
...
- Add `package` comments
- Rename `opts` to `_` where unused
2023-12-13 09:10:20 -05:00
Christopher Allen Lane
95a4e31b6c
chore(deps): upgrade dependencies
...
Upgrade all dependencies to newest versions.
2023-12-13 08:29:02 -05:00
Chris Allen Lane
0d9c92c8c0
Merge pull request #707 from chrisallenlane/v4.4.0
...
V4.4.0
2022-11-05 13:11:22 -04:00
Christopher Allen Lane
16c50bb659
chore: bump version to 4.4.0
2022-11-05 12:56:43 -04:00
Christopher Allen Lane
1a85c9e9c8
feat: platform compatibility
...
Add experimental support for the following platforms:
- aix
- dragonfly
- illumos
- ios
- netbsd
- openbsd
- plan9
- solaris
2022-11-05 12:00:43 -04:00
Christopher Allen Lane
c9ccefa607
chore(deps): remove yaml.v1
...
Remove errant `yaml.v1` dependency, and use `yaml.v2` everywhere.
2022-11-05 11:39:48 -04:00
Christopher Allen Lane
3a6b6e58f0
chore(deps): update dependencies
...
`make vendor-update`
2022-11-05 10:15:15 -04:00
Christopher Allen Lane
2edc0ee299
chore: add a comment
...
Add a small comment regarding a tricky edge-case in `gitdir.go`.
2022-08-28 06:54:29 -04:00
Chris Allen Lane
bd9fa1ba70
Merge pull request #700 from chrisallenlane/4.3.3
...
4.3.3
2022-08-27 22:07:19 -04:00
Christopher Allen Lane
bb85e611f4
chore: bump version to 4.3.3
2022-08-27 21:29:06 -04:00
Christopher Allen Lane
a2f538f114
refactor(repo): create repo
package
...
- Refactor `installer.clone` into new `repo.Clone` package and method.
- Refactor `sheets.isGitDir` into `repo.GitDir`.
Both of these changes read better, and will facilitate cleaner
architecture when `--update` is implemented.
2022-08-27 21:02:48 -04:00
Christopher Allen Lane
80c91cbdee
feat(installer): use go-git
to clone
...
Integrate `go-git` into the application, and use it to `git clone`
cheatsheets when the installer runs.
Previously, the installer required that `git` be installed on the system
`PATH`, so this change has to big advantages:
1. It removes that system dependency on `git`
2. It paves the way for implementing the `--update` command
Additionally, `cheat` now performs a `--depth=1` clone when installing
cheatsheets, which should at least somewhat improve installation times
(especially on slow network connections).
2022-08-27 21:00:46 -04:00
Christopher Allen Lane
ede2d2dbaa
fix(Sheets): .gitignore
in cheatpath ( #699 )
...
Fix an issue whereby `cheat` would crash if a cheatpath contained a file
that began with `.git`, like `.gitignore`.
2022-08-27 20:57:07 -04:00
Chris Allen Lane
db3d7e53a4
Merge pull request #698 from chrisallenlane/4.3.2
...
4.3.2
2022-08-26 14:07:14 -04:00
Christopher Allen Lane
06c4ff52fc
chore: bump version to 4.3.2
2022-08-26 13:56:35 -04:00
Christopher Allen Lane
cbc2638d96
fix(docopt): whitespace typo in --help
output
...
Fix a whitespace (alignment) typo in the `--help` output.
2022-08-26 13:56:35 -04:00
Christopher Allen Lane
fd93da799d
fix(sheets): cheatsheets in submodules ( #694 )
...
Resolve an issue whereby cheatsheets contained within `git` submodules
were ignored due to a regression introduced in `4.3.1`.
2022-08-26 13:55:09 -04:00
Christopher Allen Lane
5c5ed7344f
chore(docs): improve configuration docs ( #656 )
...
Improve the configuration documentation in `configs/conf.yml` (#656 ).
2022-08-26 13:55:09 -04:00
Christopher Allen Lane
d773383f70
fix(build): Makefile
corrections
...
- Fix an issue whereby `make clean` filed to remove assets created by
`make generate`.
- Fix a subsequent issue whereby `make generate` was being run too late
in the `make build` target, which resulted in a build failure.
2022-08-26 13:55:09 -04:00
Christopher Allen Lane
2717044b62
chore(docs): update INSTALLING.md
( #677 )
...
Update `INSTALLING.md` with more package information. See: #677
2022-08-26 13:55:09 -04:00
Christopher Allen Lane
2d635293c5
refactor(Sheet): create parse
method
...
Move `Frontmatter.Parse` to `Sheet.parse`, and delete the `frontmatter`
package. `Sheet.parse` more accurately describes the parser's behavior.
2022-08-26 13:55:09 -04:00
Christopher Allen Lane
f0bfeda47a
fix(frontmatter): do not trim whitespace ( #663 )
...
Do not strip leading or trailing newlines. Doing so had interferred with
users' intended cheatsheet layouts.
2022-08-26 13:55:09 -04:00
Christopher Allen Lane
f1540290a7
chore(deps): update dependencies
2022-08-26 11:06:21 -04:00
Chris Allen Lane
0b80a608c3
Merge pull request #692 from chrisallenlane/4.3.1
...
4.3.1
2022-08-08 21:01:56 -04:00
Christopher Allen Lane
3c1e24a0e8
chore: bump version to 4.3.1
2022-08-08 20:38:23 -04:00
Christopher Allen Lane
2a6586b41b
fix(installer): always use more
pager on Windows
2022-08-08 20:38:23 -04:00
Christopher Allen Lane
6421953183
feat(installer): set default editor
...
Attempt to set and locate a default editor when running the installer.
2022-08-08 20:14:27 -04:00
Christopher Allen Lane
0c47f44ff9
fix: no colorization on default install ( #687 )
...
Fix an issue whereby a default installation (as created by the
installer) would (seemingly) fail to output colorized text, even when
the `-c` flag was passed.
The root cause of the problem was that the installer did not set a
default `style` for `chroma`, which in turn defaulted to using the `bw`
(black-and-white) style.
Thus, colorization actually *was* being applied with `-c` - it was
simply black and white!
2022-08-08 19:45:32 -04:00
Christopher Allen Lane
77f9c3fdd0
fix(Sheets): cheatsheets in hidden directories ( #690 )
...
Fix an issue whereby cheatsheets that were contained within hidden
directories were prevented from being loaded.
2022-08-08 19:17:59 -04:00
Chris Allen Lane
b53a14b1a7
Merge pull request #691 from chrisallenlane/4.3.0
...
4.3.0
2022-08-07 14:45:27 -04:00
Christopher Allen Lane
f1e8602369
chore: bump version to 4.3.0
2022-08-07 14:11:47 -04:00
Christopher Allen Lane
ddbe710881
feat: add the --conf
command
...
Add the `--conf` command, which dipslay's the current `cheat`
configuration file path.
2022-08-07 14:08:25 -04:00
Christopher Allen Lane
d598d96fce
fix(Config): colorization without pager ( #687 )
...
Fix an issue whereby colorization would output ANSI codes if a pager was
not configured.
The solution here is to stop guessing about the state of the user's
system at runtime, as well as the user's intention. The installer now
chooses an appropriate installer when generating configs, and no longer
bothers searching for pagers at runtime.
2022-08-07 10:19:56 -04:00
Christopher Allen Lane
4fdec50487
chore(deps): upgrade dependencies
...
- Upgrade to Go 1.19 in `go.mod`
- Upgrade dependencies
2022-08-07 10:19:56 -04:00
Chris Allen Lane
9de866dfb6
Merge pull request #689 from chrisallenlane/ci
...
chore(ci): YAML lints
2022-08-05 07:53:53 -04:00
Christopher Allen Lane
eb99a070ce
chore: CI template nits
...
- Fix YAML nits per `yamllint`
- Upgrade Go version to `1.19`
2022-08-05 07:49:20 -04:00
Chris Allen Lane
73f80bde48
Merge pull request #688 from chrisallenlane/4.2.7
...
4.2.7
2022-08-05 07:01:51 -04:00