GithubHelp home page GithubHelp logo

ericburcham / analyser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from repography/analyser

0.0 1.0 0.0 51 KB

The CLI to analyse a local Git repo and submit the metadata to Repography.com

License: GNU Affero General Public License v3.0

Shell 5.50% Python 1.49% Rust 93.01%

analyser's Introduction

The Repography analyser CLI

This is the CLI option on repography.com, to analyse a local Git repo and submit the metadata to Repography. This lets you create Repography posters without using the GitHub app.

Building and running the analyser from source

The command on the site to "copy and paste into your terminal" downloads and runs ./run.sh, a small Bash script which itself downloads and runs the correct analyser binary depending on your platform and the availability of the git CLI.

If you'd prefer to clone this repo and run the analyser yourself, that works fine!

First of all you'll need Rust installed (see Install Rust).

If you have the git CLI installed already, then you can simply use cargo run:

cargo run --release -- --target /path/to/your/repo

If you don't have the git CLI then we can use libgit2, it's just slower:

cargo run --release --features=git-libgit2 -- --target /path/to/your/repo

Inspecting the analyser

If you're here because you want to ensure that the analyser isn't doing anything nefarious, here are some pointers to the most relevant bits:

  • src/main.rs: The entrypoint which shows each step of the process.
  • src/analysis.rs: This contains the Analysis structure which is uploaded to Repography for visualization.
  • src/git/cli.rs: The actual git commands which are used (src/git/git2.rs is the same, if using libgit2 instead of git).
  • src/api.rs: Interactions with the Repography API.
  • src/encode.rs: Encodes the analysis for upload (N.B. it is encrypted at this point with a per-repo key and will stay encrypted at rest).

analyser's People

Contributors

arraypad avatar

Watchers

 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.