Skip to content

Adds a feedline if it is missing to any file you provide

Notifications You must be signed in to change notification settings

arembridge/feedline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feedline

Description

Provide a list of files and this tool will ensure there is an empty line at the end of each file. Simples.

Example

def main():
    pass

if __name__=="__main__":
    main()
- no newline
+

Usage

Provide a single file to reformat:

feedline dodgy_file.txt

Provide multiple files to reformat:

feedline  dodgy_file_1.txt dodgy_file_2.txt

Pipe files to reformat:

find ./src/ -type f | feedline
git diff --name-only main | feedline

Filter the results you care about:

ls | feedline --color=NEVER | grep '^SKIP'

Installation

Manual installation

  1. Clone this repo: git clone https://github.com/arembridge/feedline.git
  2. Install with cargo: cargo install --path .

About

Adds a feedline if it is missing to any file you provide

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages