Skip to content

Feat/add installation methods #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 14, 2024
Merged

Conversation

AlejandroSuero
Copy link
Owner

Description

Please include a summary of the change and which issue is fixed. Please also
include relevant motivation and context

Fixes #1

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list relevant details about your configuration

  • Using make test
Results
ok 1 - [freeze-code test] setup creates user commands
ok 2 - [freeze-code test] setup with default config
ok 3 - [freeze-code test] setup with custom config
[freeze-code] 🍧 frozen frame in path=/Users/aome/dev/nvim_plugins/freeze-code.nvim/freeze.pngok 4 - [freeze-code test] freeze creates an image from a file

[freeze-code] 🍧 frozen frame in path=/Users/aome/dev/nvim_plugins/freeze-code.nvim/freeze.pngok 5 - [freeze-code test] freeze creates an image from a range in a file

[freeze-code] downloading release from `https://github.com/charmbracelet/freeze/releases/download/v0.1.6/freeze_0.1.6_Darwin_arm64.tar.gz`
[freeze-code] extracting release with `tar -zxf freeze.tar.gz -C ./tests/mocks/bin`
[freeze-code] `freeze` binary installed in installed in path=./tests/mocks/bin/freeze
ok 6 - [freeze-code installation] installs `freeze` using `cURL`
[freeze-code tests] DEBUG: removing `freeze` binary from `./tests/mocks/bin`
[freeze-code] go install github.com/charmbracelet/freeze@latest completed
ok 7 - [freeze-code installation] installs `freeze` using `go install`
[freeze-code tests] DEBUG: removing `freeze` binary from `./tests/mocks/go/bin`
1..7


# Success: 7
  • Using make test-nvim
Results
Starting...
Scheduling: tests/freeze-code/freeze-code_spec.lua
Scheduling: tests/freeze-code/installation_spec.lua
[freeze-code] downloading release from `https://github.com/charmbracelet/freeze/releases/download/v0.1.6/freeze_0.1.6_Darwin_arm64.tar.gz`
[freeze-code] extracting release with `tar -zxf freeze.tar.gz -C ./tests/mocks/bin`
[freeze-code] `freeze` binary installed in installed in path=./tests/mocks/bin/freeze
[freeze-code tests] DEBUG: removing `freeze` binary from `./tests/mocks/bin`
[freeze-code] go install github.com/charmbracelet/freeze@latest completed
[freeze-code tests] DEBUG: removing `freeze` binary from `./tests/mocks/go/bin`

========================================
Testing:        /Users/aome/dev/nvim_plugins/freeze-code.nvim/tests/freeze-code/installation_spec.lua
Success ||      [freeze-code installation] installs `freeze` using `cURL`
Success ||      [freeze-code installation] installs `freeze` using `go install`

Success:        2
Failed :        0
Errors :        0
========================================
[freeze-code] 🍧 frozen frame in path=/Users/aome/dev/nvim_plugins/freeze-code.nvim/freeze.png
[freeze-code] 🍧 frozen frame in path=/Users/aome/dev/nvim_plugins/freeze-code.nvim/freeze.png

========================================
Testing:        /Users/aome/dev/nvim_plugins/freeze-code.nvim/tests/freeze-code/freeze-code_spec.lua
Success ||      [freeze-code test] setup creates user commands
Success ||      [freeze-code test] setup with default config
Success ||      [freeze-code test] setup with custom config
Success ||      [freeze-code test] freeze creates an image from a file
Success ||      [freeze-code test] freeze creates an image from a range in a file

Success:        5
Failed :        0
Errors :        0
========================================

Configuration:

  • Neovim version (nvim --version): NVIM v0.9.5
  • Operating system and version: MacOS 14.4.1

Checklist

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

- [x] Added `go install github.com/charmbracelet/freeze@latest`
installation process if the user has [go](https:/go.dev) installed.

- [x] Added installation process via `cURL`, getting the release from
[freeze releases page](https://github.com/charmbracelet/freeze/releases)
and using `tar` if the is *Unix* like **OS** or `Expand-Archive` if is
*Windows*.
- [x] Tested `go install`.
- [x] Tested `curl` GitHub `freeze` release and `tar` into
`install_path`.

auto-generate vimdoc
@AlejandroSuero AlejandroSuero force-pushed the feat/add-installation-methods branch from fd6ba5d to 78f04a0 Compare May 13, 2024 23:54
Copy link
Owner Author

@AlejandroSuero AlejandroSuero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@AlejandroSuero AlejandroSuero self-assigned this May 14, 2024
@AlejandroSuero AlejandroSuero added the enhancement New feature or request label May 14, 2024
@@ -19,7 +19,7 @@ jobs:
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "auto-generate vimdoc"
commit_message: "docs: auto-generate vimdoc"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@AlejandroSuero AlejandroSuero merged commit 025ae5f into main May 14, 2024
@AlejandroSuero AlejandroSuero deleted the feat/add-installation-methods branch May 14, 2024 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: Add installation methods
1 participant