Coder Social home page Coder Social logo

rrossilli / peek Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 43 KB

A command-line tool that allows developers to create 'previews' of their changes in an obfuscated form. Once some condition is met, the developer can 'reveal' the changes, de-obfuscating the code for final integration.

License: MIT License

TypeScript 100.00%

peek's Introduction

Peek CLI

The Peek CLI is a command-line tool that allows developers to create 'previews' of their changes in an obfuscated form. Once some condition is met, the developer can 'reveal' the changes, de-obfuscating the code for final integration.

Installation

You can install the CLI by cloning this repository:

$ git clone https://github.com/rrossilli/peek-cli.git
$ cd peek-cli
$ npm install
$ npm link

Usage

Before using the Peek CLI, you will need to set your GitHub token. Visit https://github.com/settings/tokens to generate a token. Once you have your token, you can set it with the following command:

$ peek set-gh-token <token>

To view your currently set GitHub token, use the following command:

$ peek get-gh-token

If you need to delete your stored GitHub token, use:

$ peek del-gh-token

Creating a Peek

Assuming you've made changes and committed them locally, you can create a Peek branch with obfuscated changes using the create command:

$ peek create

Options for this command include -e or --entropy to set the entropy of the encryption, and -k or --key to provide a secret key for encryption.

Pushing a Peek

Once you've created a Peek, you can push it to GitHub with the push command:

$ peek push

This command squashes your commits and pushes them to the remote repository, creating a Pull Request with obfuscated changes.

Revealing a Peek

To de-obfuscate your changes and reveal the actual code, use the reveal command:

$ peek reveal <key>

This command needs the encryption key that was used to create the Peek. The key de-obfuscates the code, squashes the commits and pushes the changes to the remote repository.

Note

Remember to always be in the root of your local git repository when running the Peek commands.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

peek's People

Contributors

rrossilli avatar

Stargazers

 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.