Trim asciinema's record file for golang

asciinema-trim

Trim asciinema's record file

Motivation

asciinema is an awesome project to record and share your terminal sessions.

After recoding the session, sometimes you would like to trim the session. asciinema-trim is a CLI to trim the record file.

Install

$ brew install suzuki-shunsuke/asciinema-trim/asciinema-trim

How to use

  1. Prepare for the input record file
  2. Insert time you want to trim in the file
  3. Run asciinema-trim then trimmed record file is generated

e.g.

AS IS

[28.024765, "o", "h"]
[30.087933, "o", "e"]

Trim 2 seconds.

[28.024765, "o", "h"]
2
[30.087933, "o", "e"]

Float64 is available.

[28.024765, "o", "h"]
1.5
[30.087933, "o", "e"]

Usage

$ asciinema-trim <input file>

The trimmed record file is outputted to the standard output.

e.g.

$ asciinema-trim input.cast > output.cast

Example

Please see examples. There are three files.

  • raw.cast: Generated by asciinema rec raw.cast
  • input.cast: Update raw.cast to trim the record file
  • output.cast: Generated by asciinema-trim input.cast > output.cast
$ diff raw.cast input.cast
2,32c2
< [2.054084, "o", "\u001b]7;file://ShunsukenoMacBook-Pro.local/Users/shunsuke-suzuki/repos/src/github.com/suzuki-shunsuke/asciinema-trim/examples\u0007"]
< [2.057998, "o", "\u001b]0;~/repos/src/github.com/suzuki-shunsuke/asciinema-trim/examples\u0007"]
< [2.065518, "o", "\r\n"]
< [2.273695, "o", "\u001b[0m\u001b[27m\u001b[24m\u001b[J\u001b[34m~/repos/src/github.com/suzuki-shunsuke/asciinema-trim/examples\u001b[39m\r\n\r\u001b[35m❯\u001b[39m \u001b[K\u001b[?2004h"]
< [2.321245, "o", "\r\r\u001b[A\u001b[0m\u001b[27m\u001b[24m\u001b[J\u001b[34m~/repos/src/github.com/suzuki-shunsuke/asciinema-trim/examples\u001b[39m \u001b[38;5;242mfeat/first-pr\u001b[39m\r\n\r\u001b[35m❯\u001b[39m \u001b[K"]
< [2.355236, "o", "\r\r\u001b[A\u001b[0m\u001b[27m\u001b[24m\u001b[J\u001b[34m~/repos/src/github.com/suzuki-shunsuke/asciinema-trim/examples\u001b[39m \u001b[38;5;242mfeat/first-pr*\u001b[39m\r\n\r\u001b[35m❯\u001b[39m \u001b[K"]
< [6.816005, "o", "c"]
< [6.989229, "o", "\bco"]
< [7.263569, "o", "n"]
< [7.471234, "o", "f"]
< [7.977468, "o", "s"]
< [8.194928, "o", "e"]
< [8.452856, "o", "t"]
< [9.019689, "o", "\b \b"]
< [9.201359, "o", "\b \b"]
< [9.30929, "o", "\b \b"]
< [9.725683, "o", "t"]
< [9.890072, "o", "e"]
< [10.01908, "o", "s"]
< [10.174331, "o", "t"]
< [10.639005, "o", " "]
< [11.030146, "o", "-"]
< [11.168158, "o", "-"]
< [11.473176, "o", "v"]
< [11.573134, "o", "e"]
< [11.709366, "o", "s"]
< [12.003549, "o", "e"]
< [12.220146, "o", "i"]
< [13.637836, "o", "\u001b[?2004l\r\r\n"]
< [13.638194, "o", "\u001b]0;examples: conftest --vesei\u0007"]
< [14.225163, "o", "Error: unknown flag: --vesei\r\n"]
---
> 14
53,56c23
< [20.33593, "o", "n"]
< [20.835619, "o", "o"]
< [21.225327, "o", "\b \b"]
< [21.347125, "o", "\b \b"]
---
> 2
65a33
> 3

Release Note

GitHub Releases

License

MIT

Owner
Shunsuke Suzuki
DevOps / Go / Tool maker / OSS contributor
Shunsuke Suzuki
Comments
  • chore(deps): update module go to 1.19 - autoclosed

    chore(deps): update module go to 1.19 - autoclosed

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | go (source) | golang | minor | 1.17 -> 1.19 |


    Release Notes

    golang/go

    v1.19.4

    v1.19.3

    v1.19.2

    v1.19.1

    v1.19.0

    v1.18.9

    v1.18.8

    v1.18.7

    v1.18.6

    v1.18.5

    v1.18.4

    v1.18.3

    v1.18.2

    v1.18.1

    v1.18.0


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua-registry to v3.114.0

    chore(deps): update dependency aquaproj/aqua-registry to v3.114.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua-registry | minor | v3.113.0 -> v3.114.0 |


    Release Notes

    aquaproj/aqua-registry

    v3.114.0

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-registry/compare/v3.113.0...v3.114.0

    🎉 The number of packages has reached 1,000 🎉

    Amazing! Thank you, all contributors!

    🎉 New Packages

    #​948 #​8810 concourse/concourse/concourse: Concourse is a container-based continuous thing-doer written in Go #​994 #​8810 concourse/concourse/fly: Concourse is a container-based continuous thing-doer written in Go #​8814 prometheus/alertmanager: Prometheus Alertmanager #​8815 prometheus/prom2json: A tool to scrape a Prometheus client and dump the result as JSON #​8813 prometheus/prometheus: The Prometheus monitoring system and time series database

    Contributors

    Thank you for your contribution!

    @​ryodocx #​8810 #​8813 #​8814 #​8815


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua-registry to v3.113.0

    chore(deps): update dependency aquaproj/aqua-registry to v3.113.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua-registry | minor | v3.112.0 -> v3.113.0 |


    Release Notes

    aquaproj/aqua-registry

    v3.113.0

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-registry/compare/v3.112.0...v3.113.0

    🎉 New Packages

    #​8804 ivaaaan/smug: Session manager and task runner for tmux. Start your development environment within one command #​8786 jmattheis/goverter: Generate type-safe Go converters by simply defining an interface

    Contributors

    Thank you for your contribution!

    @​s-takehana #​8786 @​ponkio-o #​8804


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua to v1.28.0

    chore(deps): update dependency aquaproj/aqua to v1.28.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua | minor | v1.27.0 -> v1.28.0 |


    Release Notes

    aquaproj/aqua

    v1.28.0

    Compare Source

    Pull Requests | Issues | https://github.com/aquaproj/aqua/compare/v1.27.0...v1.28.0

    Features

    Improved aqua update-checksum command. https://aquaproj.github.io/docs/tutorial-extras/checksum/

    #​1489 #​1492 Ignore unrelated files' checksums in checksum files #​1257 #​1495 Support pruning unused checksums in aqua-checksums.json

    Ignore unrelated files' checksums in checksum files

    #​1489 #​1492

    aqua update-checksum added all checksums in checksum files. But some checksum files include unrelated checksums. For example, gh_2.21.1_checksums.txt includes a checksum of Debian package, which is unneeded for aqua.

    2005b4aef5fec0336cb552c74f3e4c445dcdd9e9c1e217d8de3acd45ee152470  gh_2.17.0_linux_386.deb
    34c0ba49d290ffe108c723ffb0063a4a749a8810979b71fc503434b839688b5c  gh_2.17.0_linux_386.rpm
    3516a4d84f7b69ea5752ca2416895a2705910af3ed6815502af789000fc7e963  gh_2.17.0_macOS_amd64.tar.gz
    3fb9532fd907547ad1ed89d507f785589c70f3896133ca64de609ba0dcc080d5  gh_2.17.0_linux_armv6.tar.gz
    4bd7415b5ccc559b2e9ff7d4bcb8d1fd63c4acce3eaf589da2a70c50035af54f  gh_2.17.0_linux_amd64.deb
    5859178d22f0124bbedc8d69c242df8c304ba8da1eb94406f11b1bbe4ec393e8  gh_2.17.0_linux_amd64.rpm
    8c403207ed8ab18b4c69d7e97321a553731d9034fe98ba96feebfc267ecd2c91  gh_2.17.0_linux_armv6.deb
    96d4e523636446b796b28f069332b6f8ea9a0950c6ef43617203cc5ac5af0d84  gh_2.17.0_windows_amd64.zip
    a614f898e229f3d6af3cea88cb42ff71c4c5466a52fefef2118d307f1a11b055  gh_2.17.0_linux_armv6.rpm
    c36f5ead31b8d6c41dc5ce97b514133a8cc037739aba239aa2a75b8afe3e618a  gh_2.17.0_linux_arm64.deb
    c6ce28981a1fb9acb13ee091b5f3de8eb244a67dc99aff1d106985c1e94c72c6  gh_2.17.0_linux_amd64.tar.gz
    cdd97a4afe4ec828fed72811f9b47a9fa4ef8f8fb2fa1e3b9a8cfc3334cbc815  gh_2.17.0_linux_arm64.rpm
    d373e305512e53145df7064a0253df696fe17f9ec71804311239f3e2c9e19999  gh_2.17.0_linux_arm64.tar.gz
    d3b06f291551ce0357e08334d8ba72810a552b593329e3c0dd3489f51a8712a3  gh_2.17.0_windows_386.zip
    ed2ed654e1afb92e5292a43213e17ecb0fe0ec50c19fe69f0d185316a17d39fa  gh_2.17.0_linux_386.tar.gz
    

    From aqua v1.28.0, aqua ignores these unrelated checksums.

    Support pruning unused checksums in aqua-checksums.json

    #​1257 #​1495

    When tools are updated, checksums for old versions are basically unneeded. Or when we remove some tools from aqua.yaml, checksums for those tools would be unneeded.

    You can remove unused checksums by setting -prune option.

    aqua update-checksum -prune
    

    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua-registry to v3.112.0

    chore(deps): update dependency aquaproj/aqua-registry to v3.112.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua-registry | minor | v3.111.0 -> v3.112.0 |


    Release Notes

    aquaproj/aqua-registry

    v3.112.0

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-registry/compare/v3.111.0...v3.112.0

    🎉 New Packages

    #​8782 CycloneDX/cyclonedx-cli: CycloneDX CLI tool for SBOM analysis, merging, diffs and format conversions #​8770 bufbuild/protoc-gen-validate: protoc plugin to generate polyglot message validators #​8785 vburenin/ifacemaker: Generate interfaces from structure methods

    Contributors

    Thank you for your contribution!

    @​s-takehana #​8770 #​8785 @​ryodocx #​8782


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua to v1.27.0

    chore(deps): update dependency aquaproj/aqua to v1.27.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua | minor | v1.26.2 -> v1.27.0 |


    Release Notes

    aquaproj/aqua

    v1.27.0

    Compare Source

    Pull Requests | Issues | https://github.com/aquaproj/aqua/compare/v1.26.2...v1.27.0

    Features

    #​1466 #​1468 #​1486 Support a new field private for private packages and registries

    You can set private: true to private packages and registries. By default, private is false. If private is true, aqua skips sending HTTP requests to download assets, because the requests always fail. Even if the value of private attribute is wrong, you can install the registry and package.

    e.g. aqua.yaml

    registries:
    - name: foo
      type: github_content
      repo_owner: aquaproj
      repo_name: private-repository
      ref: v3.90.0
      private: true # Private Registry
      path: registry.yaml
    

    e.g. registry.yaml

    packages:
    
    ##### init: a
    - type: github_release
      repo_owner: aquaproj
      repo_name: private-repository
      asset: 'foo_{{trimV .Version}}_{{title .OS}}_{{.Arch}}.tar.gz'
      private: true # Private Package
    

    #​1084 #​1487 Support template in go_install package's path attribute

    Go Module path includes the major version. We have ever had to define version_constraint per major version. Using template, you can define the package more simply.

    e.g.

    packages:
      - type: go_install
        repo_owner: volatiletech
        repo_name: sqlboiler
        description: Generate a Go ORM tailored to your database schema
        path: github.com/volatiletech/sqlboiler/v{{(semver .Version).Major}}
    
    Bug Fixes

    #​1482 generate-registry: Remove slsa_provenance: null from the output of aqua gr


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua-registry to v3.111.0

    chore(deps): update dependency aquaproj/aqua-registry to v3.111.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua-registry | minor | v3.110.0 -> v3.111.0 |


    Release Notes

    aquaproj/aqua-registry

    v3.111.0

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-registry/compare/v3.110.0...v3.111.0

    🎉 New Packages

    #​8760 bufbuild/connect-go/protoc-gen-connect-go: A code generation tool for Connect.

    Contributors

    Thank you for your contribution!

    @​s-takehana #​8760 :tada: New contributor!


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua-registry to v3.110.0

    chore(deps): update dependency aquaproj/aqua-registry to v3.110.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua-registry | minor | v3.109.0 -> v3.110.0 |


    Release Notes

    aquaproj/aqua-registry

    v3.110.0

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-registry/compare/v3.109.0...v3.110.0

    🎉 New Packages

    #​8757 spf13/cobra-cli: Cobra CLI tool to generate applications and commands

    Features

    #​8747 google/osv-scanner: Verify SLSA Provenance

    Contributors

    Thank you, Contributors!

    @​zoetrope #​8757


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua to v1.26.2

    chore(deps): update dependency aquaproj/aqua to v1.26.2

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua | patch | v1.26.1 -> v1.26.2 |


    Release Notes

    aquaproj/aqua

    v1.26.2

    Compare Source

    Pull Requests | Issues | https://github.com/aquaproj/aqua/compare/v1.26.1...v1.26.2

    Bug Fixes

    #​1477 Install and execute Cosign with correct runtime

    Fixed a bug that when AQUA_GOOS or AQUA_GOARCH were set Cosign for wrong runtime was installed.


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua-registry to v3.109.0

    chore(deps): update dependency aquaproj/aqua-registry to v3.109.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua-registry | minor | v3.108.0 -> v3.109.0 |


    Release Notes

    aquaproj/aqua-registry

    v3.109.0

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-registry/compare/v3.108.0...v3.109.0

    🎉 New Packages

    #​8742 Songmu/gitsemvers: Retrieve semvers from git tags #​8743 mr-karan/doggo: Command-line DNS Client for Humans. Written in Golang

    Features

    #​8731 argoproj/argo-workflows: Add Cosign setting #​8732 updatecli/updatecli: Add Cosign setting

    Contributors

    Thank you, Contributors!

    @​ponkio-o #​8742 #​8743


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency aquaproj/aqua to v1.26.1

    chore(deps): update dependency aquaproj/aqua to v1.26.1

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | aquaproj/aqua | minor | v1.25.2 -> v1.26.1 |


    Release Notes

    aquaproj/aqua

    v1.26.1

    Compare Source

    Pull Requests | Issues | https://github.com/aquaproj/aqua/compare/v1.26.0...v1.26.1

    Bug Fixes

    #​1471 Skip installing Cosign and verify with Cosign in windows/arm64 #​1473 Check if Cosign is supported

    Others

    #​1474 Update Go to 1.19.4

    v1.26.0

    Compare Source

    Pull Requests | Issues | https://github.com/aquaproj/aqua/compare/v1.25.2...v1.26.0

    Features

    #​1449 #​1454 Support package verification by Cosign and slsa-verifier We provide aqua's SLSA Provenance multiple.intoto.jsonl.


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update aquaproj/aqua-installer action to v2

    chore(deps): update aquaproj/aqua-installer action to v2

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | aquaproj/aqua-installer | action | major | v1.2.0 -> v2.0.2 |


    Release Notes

    aquaproj/aqua-installer

    v2.0.2

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-installer/compare/v2.0.1...v2.0.2

    Bug Fixes

    #​303 Update aqua for bootstrap to v1.26.2

    v2.0.1

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-installer/compare/v2.0.0...v2.0.1

    Bug Fixes

    #​300 Use shasum instead of sha256sum if sha256sum isn't found and skip checksum verification if they aren't found

    • Use shasum instead of sha256sum if sha256sum isn't found
    • If shasum and sha256sum aren't found, the checksum verification is skipped

    v2.0.0

    Compare Source

    Issues | Pull Requests | https://github.com/aquaproj/aqua-installer/compare/v1.2.0...v2.0.0

    ⚠️ Breaking Changes ⚠️

    aqua-installer v2 doesn't support specifying the install path anymore.

    Features

    #​277 Verify aqua with slsa-verifier

    By this feature, you can install aqua securely.


    Configuration

    ?? Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update dependency golangci/golangci-lint to v1.50.1

    chore(deps): update dependency golangci/golangci-lint to v1.50.1

    Mend Renovate

    This PR contains the following updates:

    | Package | Update | Change | |---|---|---| | golangci/golangci-lint | minor | v1.45.2 -> v1.50.1 |


    Release Notes

    golangci/golangci-lint

    v1.50.1

    Compare Source

    1. updated linters
      • contextcheck: from 1.1.2 to 1.1.3
      • go-mnd: from 2.5.0 to 2.5.1
      • wrapcheck: from 2.6.2 to 2.7.0
      • revive: fix configuration parsing
      • lll: skip imports
    2. misc.
      • windows: remove redundant character escape '/'
      • code-climate: add default severity

    v1.50.0

    Compare Source

    1. new linters
      • dupword: https://github.com/Abirdcfly/dupword
      • testableexamples: https://github.com/maratori/testableexamples
    2. updated linters
      • contextcheck: change owner
      • contextcheck: from 1.0.6 to 1.1.2
      • depguard: from 1.1.0 to 1.1.1
      • exhaustive: add missing config
      • exhaustive: from 0.8.1 to 0.8.3
      • gci: from 0.6.3 to 0.8.0
      • go-critic: from 0.6.4 to 0.6.5
      • go-errorlint: from 1.0.2 to 1.0.5
      • go-reassign: v0.1.2 to v0.2.0
      • gofmt: add option rewrite-rules
      • gofumpt from 0.3.1 to 0.4.0
      • goimports: update to HEAD
      • interfacebloat: fix configuration loading
      • logrlint: rename logrlint to loggercheck
      • paralleltest: add tests of the ignore-missing option
      • revive: from 1.2.3 to 1.2.4
      • usestdlibvars: from 1.13.0 to 1.20.0
      • wsl: support all configs and update docs
    3. misc.
      • Normalize exclude-rules paths for Windows
      • add riscv64 to the install script
    4. Documentation
      • cli: remove reference to old service

    v1.49.0

    Compare Source

    IMPORTANT: varcheck and deadcode has been removed of default linters.

    1. new linters
      • interfacebloat: https://github.com/sashamelentyev/interfacebloat
      • logrlint: https://github.com/timonwong/logrlint
      • reassign: https://github.com/curioswitch/go-reassign
    2. updated linters
      • go-colorable: from 0.1.12 to 0.1.13
      • go-critic: from 0.6.3 to 0.6.4
      • go-errorlint: from 1.0.0 to 1.0.2
      • go-exhaustruct: from 2.2.2 to 2.3.0
      • gopsutil: from 3.22.6 to 3.22.7
      • gosec: from 2.12.0 to 2.13.1
      • revive: from 1.2.1 to 1.2.3
      • usestdlibvars: from 1.8.0 to 1.13.0
      • contextcheck: from v1.0.4 to v1.0.6 && re-enable
      • nosnakecase: This linter is deprecated.
      • varcheck: This linter is deprecated use unused instead.
      • deadcode: This linter is deprecated use unused instead.
      • structcheck: This linter is deprecated use unused instead.
    3. documentation
      • revive: fix wrong URL
      • Add a section about default exclusions
      • usestdlibvars: fix typo in documentation
      • nolintlint: remove allow-leading-space option
      • Update documentation and assets
    4. misc.
      • dev: rewrite the internal tests framework
      • fix: exit early on run --version
      • fix: set an explicit GOROOT in the Docker image for go-critic

    v1.48.0

    Compare Source

    1. new linters
      • usestdlibvars:https://github.com/sashamelentyev/usestdlibvars
    2. updated linters
      • contextcheck: disable linter
      • errcheck: from 1.6.1 to 1.6.2
      • gci: add missing custom-order setting
      • gci: from 0.5.0 to 0.6.0
      • ifshort: deprecate linter
      • nolint: drop allow-leading-space option and add "nolint:all"
      • revgrep: bump to HEAD
    3. documentation
      • remove outdated info on source install
    4. misc
      • go1.19 support

    v1.47.3

    Compare Source

    1. updated linters:
      • remove some go1.18 limitations
      • asasalint: from 0.0.10 to 0.0.11
      • decorder: from 0.2.2 to v0.2.3
      • gci: fix panic with invalid configuration option
      • gci: from 0.4.3 to v0.5.0
      • go-exhaustruct: from 2.2.0 to 2.2.2
      • gomodguard: from 1.2.3 to 1.2.4
      • nosnakecase: from 1.5.0 to 1.7.0
      • honnef.co/go/tools: from 0.3.2 to v0.3.3
    2. misc
      • cgo: fix linters ignoring CGo files

    v1.47.2

    Compare Source

    1. updated linters:
      • revive: ignore slow rules

    v1.47.1

    Compare Source

    1. updated linters:
      • gci: from 0.4.2 to 0.4.3
      • gci: remove the use of stdin
      • gci: fix options display
      • tenv: from 1.6.0 to 1.7.0
      • unparam: bump to HEAD

    v1.47.0

    Compare Source

    1. new linters:
      • asasalint: https://github.com/alingse/asasalint
      • nosnakecase: https://github.com/sivchari/nosnakecase
    2. updated linters:
      • decorder: from 0.2.1 to 0.2.2
      • errcheck: from 1.6.0 to 1.6.1
      • errname: from 0.1.6 to 0.1.7
      • exhaustive: from 0.7.11 to 0.8.1
      • gci: fix issues and re-enable autofix
      • gci: from 0.3.4 to 0.4.2
      • go-exhaustruct: from 2.1.0 to 2.2.0
      • go-ruleguard: from 0.3.19 to 0.3.21
      • gocognit: from 1.0.5 to 1.0.6
      • gocyclo: from 0.5.1 to 0.6.0
      • golang.org/x/tools: bump to HEAD
      • gosec: allow global config
      • gosec: from 2.11.0 to 2.12.0
      • nonamedreturns: from 1.0.1 to 1.0.4
      • paralleltest: from 1.0.3 to 1.0.6
      • staticcheck: fix generics
      • staticcheck: from 0.3.1 to 0.3.2
      • tenv: from 1.5.0 to 1.6.0
      • testpackage: from 1.0.1 to 1.1.0
      • thelper: from 0.6.2 to 0.6.3
      • wrapcheck: from 2.6.1 to 2.6.2
    3. documentation:
      • add thanks page
      • add a clear explanation about the staticcheck integration.
      • depguard: add ignore-file-rules
      • depguard: adjust phrasing
      • gocritic: add enable and disable ruleguard settings
      • gomnd: fix typo
      • gosec: add configs for all existing rules
      • govet: add settings for shadow and unusedresult
      • thelper: add fuzz config and description
      • linters: add defaults

    v1.46.2

    Compare Source

    1. updated linters:
      • execinquery: bump from v1.2.0 to v1.2.1
      • errorlint: bump to v1.0.0
      • thelper: allow to disable one option
    2. documentation:
      • rename .golangci.example.yml to .golangci.reference.yml
      • add containedctx linter to the list of available linters

    v1.46.1

    Compare Source

    1. updated linters:
      • execinquery: bump from v0.6.0 to v0.6.1
    2. documentation:
      • add missing linters

    v1.46.0

    Compare Source

    1. new linters:
      • execinquery: https://github.com/lufeee/execinquery
      • nonamedreturns: https://github.com/firefart/nonamedreturns
      • nosprintfhostport: https://github.com/stbenjam/no-sprintf-host-port
      • exhaustruct: https://github.com/GaijinEntertainment/go-exhaustruct
    2. updated linters:
      • bidichk: from 0.2.2 to 0.2.3
      • deadcode: bump to HEAD
      • errchkjson: from 0.2.3 to 0.3.0
      • errname: from 0.1.5 to 0.1.6
      • go-critic: from 0.6.2 to 0.6.3
      • gocyclo: from 0.4.0 to 0.5.1
      • gofumpt from 0.3.0 to 0.3.1
      • gomoddirectives: from 0.2.2 to 0.2.3
      • gosec: from 2.10.0 to 2.11.0
      • honnef.co/go/tools: from 0.2.2to 0.3.1 (go1.18 support)
      • nilnil: from 0.1.0 to 0.1.1
      • nonamedreturns: bump from 1.0.0 to 1.0.1
      • predeclared: from 0.2.1 to 0.2.2
      • promlinter: bump to v0.2.0
      • revive: from 1.1.4 to 1.2.1
      • tenv: from 1.4.7 to 1.5.0
      • thelper: from 0.5.1 to 0.6.2
      • unused: fix false-positive
      • varnamelen: bump to v0.8.0
      • wrapcheck: from 2.5.0 to 2.6.1
      • exhaustivestruct: This linter is deprecated use exhaustruct instead.
    3. documentation:
      • Update "Shell Completion" instruction on Linux
      • Update FAQ page
    4. misc:
      • log: enable override coloring based on CLICOLOR and CLICOLOR_FORCE

    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • Dependency Dashboard

    Dependency Dashboard

    This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

    Open

    These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

    Detected dependencies

    github-actions
    .github/workflows/renovate-config-validator.yaml
    • suzuki-shunsuke/github-action-renovate-config-validator v0.1.2
    .github/workflows/test-release.yaml
    .github/workflows/test.yaml
    • aquaproj/aqua-installer v1.2.0
    • suzuki-shunsuke/github-action-golangci-lint v0.1.4
    gomod
    go.mod
    • go 1.17
    • github.com/google/go-cmp v0.5.9
    regex
    .github/workflows/test.yaml
    • aquaproj/aqua v1.28.0
    renovate.json
    • aquaproj/aqua-renovate-config 1.5.0
    aqua.yaml
    aqua.yaml
    • suzuki-shunsuke/cmdx v1.6.1
    • golangci/golangci-lint v1.45.2
    • reviewdog/reviewdog v0.14.1
    aqua.yaml
    • aquaproj/aqua-registry v3.114.0

    • [ ] Check this box to trigger a request for Renovate to run again on this repository
Mini file storage with Go (Golang)

#Microstorage This is my exercise of creating simple file storage with GoLang Purpose: store and manipulate with user`s images in my pet projects ##Ve

Nov 2, 2022
Monitoring changes in the source file and automatically compile and run (restart).
Monitoring changes in the source file and automatically compile and run (restart).

dogo Monitoring changes in the source file and automatically compile and run (restart). 中文 Install go get github.com/liudng/dogo Create config Here's

Dec 28, 2022
OpenAPI Terraform Provider that configures itself at runtime with the resources exposed by the service provider (defined in a swagger file)
OpenAPI Terraform Provider that configures itself at runtime with the resources exposed by the service provider (defined in a swagger file)

Terraform Provider OpenAPI This terraform provider aims to minimise as much as possible the efforts needed from service providers to create and mainta

Dec 26, 2022
signature-based file format identification
signature-based file format identification

Siegfried Siegfried is a signature-based file format identification tool, implementing: the National Archives UK's PRONOM file format signatures freed

Dec 15, 2022
go-ima is a tool that checks if a file has been tampered with. It is useful in ensuring integrity in CI systems
go-ima is a tool that checks if a file has been tampered with.  It is useful in ensuring integrity in CI systems

go-ima Tool that checks the ima-log to see if a file has been tampered with. How to use Set the IMA policy to tcb by configuring GRUB GRUB_CMDLINE_LIN

Apr 26, 2022
Envoy file based dynamic routing using kubernetes config map

Envoy File Based Dynamic Routing Config mapを使用してEnvoy File Based Dynamic Routingを実現します。 概要 アーキテクチャとしては、 +----------+ +--------------+ +-----------

Dec 30, 2022
A Go based deployment tool that allows the users to deploy the web application on the server using SSH information and pem file.

A Go based deployment tool that allows the users to deploy the web application on the server using SSH information and pem file. This application is intend for non tecnhincal users they can just open the GUI and given the server details just deploy.

Oct 16, 2021
Copy your HashiCorp Vault secrets to a file

Vault Backup ⚠️ Check the oficial way to backup your HashiCorp Vault. Create a backup file of all HashiCorp Vault kv2 secrets. ./vault-backup -help

Dec 20, 2022
Help developer to sync between local file and remote apollo portal web since portal web is so messy to use

apollo-synchronizer Help developer to sync between local file and remote apollo portal web since portal web is so messy to use Features download names

Oct 27, 2022
GitHub Action: Compose multiple (conditional) checks into a single check based on file paths in a pull request
GitHub Action: Compose multiple (conditional) checks into a single check based on file paths in a pull request

GitHub Action: Composite Example Usage --- name: All Checks on: pull_request: branches: - main jobs: meta: runs-on: - ubuntu-20.

Dec 29, 2022
Docker file for go template

Overview If you are wondering how to make correct Dockerfile for web applications that wrote in GO Lang you are in the right place In this repository

Dec 2, 2021
PoC for Grafana 8.x Local File Inclusion (Pre-Auth)

Grafana 8.x Local File Inclusion (Pre-Auth) CVE: Pending All credits go to j0v and his tweet https://twitter.com/j0v0x0/status/1466845212626542607 Dis

Nov 9, 2022
Grafana Unauthorized arbitrary file reading vulnerability
Grafana Unauthorized arbitrary file reading vulnerability

CVE-2021-43798 Grafana Unauthorized arbitrary file reading vulnerability 8.3.1 (2021-12-07) Security: Fixes CVE-2021-43798 . For more information, see

Dec 25, 2022
Terminal file manager
Terminal file manager

?? llama Llama — a terminal file manager. Why another file manager? I wanted something simple and minimalistic, something to help me with faster navig

Jan 6, 2023
A file find utility modeled after the unix find written in Go

gofind A file find utility modeled after the unix find written in Go. Why This p

Dec 17, 2021
Prestic - Lets you define and run restic commands from a YAML file

Pete's Restic Lets you define and run restic commands from a YAML file. Features

Jan 10, 2022
Frep - Generate file using template from environment, arguments, json/yaml/toml config files

frep Generate file using template from environment, arguments, json/yaml/toml config files. NAME: frep - Generate file using template USAGE: fr

Nov 30, 2022
A simple download file manager that sorts your files into your desired folders, This was meant to be a small project and nothing big.

GoDFM Simply go to the tags and download the .exe file (or compile it yourself by running go build). Add it to your environment paths by going to sett

Aug 9, 2022
A small utility to generate a kubectl configuration file for all clusters you have access to in GKE.

gke-config-helper A small utility to generate a kubectl configuration file for all clusters you have access to in GKE. Usage $ gke-config-helper The b

Feb 9, 2022