Skip to content

The script I use to automate linting and repetitive git commands when submitting a new command to tldr-pages.

License

Notifications You must be signed in to change notification settings

258204/tldr_new_command_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Using the TLDR linter, the page will be linted for errors and flag any, then, if there are no errors reported from the linter, the page will be staged onto a new branch, committed and pushed to origin with appropriate names.

Initialize a local git repo with your fork of tldr-pages set as origin, then run this script as shown below, then submit the pull request in github.

Usage:

  • Lint and submit a new page:

$ bash new_command.sh {{command.md}}

  • Lint and submit a new page, exiting if tldrl (TLDR Lint) isn't installed:

$ bash new_command.sh -l {{command.md}}

About

The script I use to automate linting and repetitive git commands when submitting a new command to tldr-pages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages