New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/matthewdargan/ghlink

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/matthewdargan/ghlink

  • v0.2.19
  • Source
  • Go
  • Socket score

Version published
Created
Source

Crates.io Documentation License

Ghlink creates GitHub permanent links to specified file lines of files hosted in a GitHub repository.

Usage:

ghlink [-l1 line1 [-l2 line2] | -s text] file

ghlink file prints a link to file.

ghlink -l1 line1 file prints a link to line1 in file.

ghlink -l1 line1 -l2 line2 file prints a link to lines line1 through line2 in file.

ghlink -s text file prints a link to lines matching text in file. If text is ‘-’, the standard input is used.

Examples

Print a link to README.md:

$ ghlink README.md

Print a link to line 3 in README.md:

$ ghlink -l1 3 README.md

Print a link to lines 3 through 8 in README.md:

$ ghlink -l1 3 -l2 8 README.md

Print a link to lines matching "Usage:\n\n ghlink file":

$ ghlink -s 'Usage:\n\n    ghlink file' README.md

FAQs

Package last updated on 30 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc