Skip to content
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

Replace clipboard module #45

Merged
merged 1 commit into from
Mar 31, 2024
Merged

Conversation

carloscastrojumo
Copy link
Owner

This pull request includes changes that revolve around dependency management and code optimization. The key changes are the removal of unnecessary dependencies, the replacement of a clipboard package, and the simplification of the clipboard usage in the code.

Dependency management:

  • go.mod: Removed the golang.design/x/clipboard v0.7.0 package and added the github.com/atotto/clipboard v0.1.4 package. This change indicates a shift in the clipboard package used in the project.
  • go.mod: Several indirect dependencies have been removed, specifically golang.org/x/exp/shiny, golang.org/x/image, and golang.org/x/mobile. This could be due to the removal of certain direct dependencies or a cleanup of unused packages.

Code optimization:

  • .github/workflows/release-artifacts.yaml: Removed the Install dependencies step which was used to install libx11-dev. This suggests that the dependency is no longer needed for the build and release process.
  • pkg/output/messages.go: Replaced the import of golang.design/x/clipboard with github.com/atotto/clipboard, reflecting the change in the clipboard package.
  • pkg/output/messages.go: Simplified the clipboard usage in the Print function. The initialization of the clipboard and the writing to it have been replaced with a single call to clipboard.WriteAll. This change makes the code more concise and easier to read.

@carloscastrojumo carloscastrojumo requested a review from ruia as a code owner March 31, 2024 20:53
@carloscastrojumo carloscastrojumo merged commit 5066562 into main Mar 31, 2024
1 check passed
@carloscastrojumo carloscastrojumo deleted the replace-clipboard-module branch March 31, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants