Git Product home page Git Product logo

revup's Introduction

revup

License: MIT

Install

Linux

First build the executable
cargo build --release

Then move or copy the binary to your preferred executables folder. For example:
sudo mv target/release/revup ~/.cargo/bin or
sudo mv target/release/revup /usr/local/bin

You should now be able to use revup --help in your terminal. If not, open an issue.

Usage

Make sure you are in the root folder of your scrypto project and run
revup -i

This will prompt for the first function call. If you are running the HelloToken demo then this would be
Hello new

Then there will be a prompt for names for the results in order. For HelloToken this could be
tokenHT helloCOMP

This will create a revup.json config file in the folder.

You can now run
revup

This will execute all the resim commands that are stored in the revup.json file and also create a .env file (as well as env.bat and env.ps1 if you are on Windows) that has stored all of the generated environment variables.

You can now run
source .env (bash) env.bat (cmd) env.ps1 (PowerShell)

This will make the variables usable in your shell, make sure that you re-run the command again after each time that you run revup.

Epoch

View the current epoch:

revup --epoch or
revup -e

Increment the epoch by a given value:

revup --epoch 10 or
revup -e 10

Advanced Usage

If your blueprint has multiple constructors then you will want to make multiple revup.json config files. After you make the first, rename it to something like:
mv revup.json revup_new.json

Now use revup -i again to target your other constructor. You can rename it too:
mv revup.json revup_other.json

Now you can quickly do your setup for either constructor using:
revup -f revup_new.json or
revup -f revup_other.json

Power User Mode

Brand new for revup is a new command file format that you can create yourself. Simply review this example file to get the basic idea:

// Revup command file
// Double slash comments are allowed and ignored.
// Blank lines are also ignored.

reset // If revup sees you calling reset, then it clears your _.env_ file.
new-account -> account pubkey
new-account -> account2 pubkey2

new-token-fixed 10000 --name emunie --symbol EMT -> tokenEMT
new-token-fixed 10000 --name gmunie --symbol GMT -> tokenGMT

publish . -> package // we can allow comments here as well

// Now we call the function.
// (We only allow envvars that are defined previously in the session.)

call-function $package CandyShop new -> component

You run a command file like this:
revup -r CandyShop.rev

Your command file can have any name but I recommend using the .rev suffix.

Hopefully that is clear enough for power users. More details are coming soon.

gitignore

When using revup in a project under git source code control you will want to update your .gitignore file to include:

revup*.json
*.rev
.env
env.bat
env.ps1

Going forward:

Normal maintenance is underway. Feel free to add, comment upon or even fix an open issue.

We also have defined some projects outlining future directions. To reward our developers and help us move forward with our plans. you may send a donation of XRD to:

rdx1qspk7l8jfqmafwfcpzhx25p3qczj0nczqd9yvaux4892lrw2xgksnfgmkkr69

revup's People

Contributors

drat3 avatar rockhoward avatar charliecooper45 avatar atoumbre avatar aos-dev 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.