neutrinoceros / apply_subs Goto Github PK
View Code? Open in Web Editor NEWA command line tool to programmatically apply substitutions to a text file
License: GNU General Public License v3.0
A command line tool to programmatically apply substitutions to a text file
License: GNU General Public License v3.0
the head and foot of the total message printed is polluted with empty lines, at least when applied to more than one file.
Disclaimer, this app is far less powerful than sed
and in particular doesn't support regex replacement, but
It offers a simpler interface to make simple sweeping changes in a reproducible fashion.
Reduce the amount of duplicated code in tests.
The README should mention the possibility of running more than one target and give an example with git ls-files
diff
would make more sense
The entry point defined in setup.cfg is broken
README.md isn't fleshed out yet.
add a -p/--patch flag
apply-subs
is misspelled apply-sub
at least once
using rich
The ignore list is broken and some hooks are currently useless (toml, yammer)
atm main returns either 0 or 1
This will require changing the order of positional arguments (version 0.3.0)
goal: make this valid
git ls-files | grep ".py" | xargs python -m apply_subs -s subsubs.json -i
The main function should be able to parse data formatted as
{
"key1": [
"form1",
"FORM2",
"FoRm3"
]
}
which is the opposite of the current implementation.
This also requires some schema validation.
Add one test with multiple targets
Add a --reverse
flag to swap between old and new in parsing. This will only work for key to key schéma and be invalid for key to list.
This should be dealt with after #13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.