Git Product home page Git Product logo

vl's Introduction

verify-links

CLI tool that helps verify current status of URIs in text files

Table of Contents

Prerequisites

  • Golang 1.16

Installing

go install github.com/npxbr/verify-links/cmd/vl@latest

Usage

Common usage

$ vl FILE

Flags

-a (Skip status codes list)

Example:

$ vl README.md -a 500,404

All 500 and 404 errors will be ignored and not considered as errors

-t (timeout for each request)

Example:

$ vl README.md -t 30s

Each request that takes more than 30s will be considered as an error. The values accepted must be under the durations values. Some examples here

-w Whitelist URIs

Example:

$ vl README.md -w server1.com,server2.com

Adds a list of whitelisted links that shouldn't be verified. Links must be exactly passed as they are in the text file

Running with docker

$ docker run -it --rm -v $PWD:/ ellisonleao/vl /yourfile.md

Screenshots

Terminal output

terminal colors are only working in linux

Github Action

Running in a Github Action

An example of a workflow file:

---
name: CI
on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
        id: go
        with:
          go-version: '^1.16.1'

      - uses: actions/[email protected]

      - run: go get github.com/npxbr/verify-links/cmd/vl
      - run: vl README.md

vl's People

Contributors

ellisonleao avatar cuducos avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.