Giter VIP home page Giter VIP logo

changes's Introduction

Changes

Small CLI to produce a list of files that were added or changed since last run in directory, by extension. In Swift, so probably only works on Mac (might work on Linux? Maybe? Dunno.). Intended for use with a static site generator or the like to stop wasting time on redundant builds.

currently works in debug builds, but build fails when trying to create a binary with everything statically linked in, as described in this issue I'm pretty sure it's SQLite.

The last couple commits are kind of random efforts to fix this by downgrading swift versions, creating an xcode project and trying to figure out how to build in xcode (how on earth DO you build a binary with everything statically linked in, in xcode?!), etc.

n.b. building does appear to work with xcode, by doing swift package generate-xcodeproj, then opening up the xcode project, and making changes to the build settings in xcode to compile c modules as described in this issue, then selecting product -> build for -> running from the xcode menu. This generates a binary that I'm putting in releases... but I can't promise that the binary will be executable on your machine. It might not have the libraries linked in in the right way; I have no idea what xcode's build commands do. Maybe it'll work. Maybe it won't. Works on my machine.

Usage

changes [EXTENSION]

where extension is, e.g., txt. Prints a list to stdout (one file per line) of each file that has been changed.

creates a hidden sqlite database file .changes.sqlite3 to hold file hashes and lengths.

Other

All code released under the WTFPL, included below:


DO WHAT(ever) THE FUCK YOU WANT TO PUBLIC LICENSE

Version 2, December 2004

Code (C) 2019 Paul Gowder [email protected]

License text copyright (C) 2004 Sam Hocevar [email protected]

Everyone is permitted to copy and distribute verbatim or modified copies of this license document [and code], and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. You just DO WHAT THE FUCK YOU WANT TO.

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.