damirka
cd242925dd
removes testdir and uses test_dir instead
2021-04-26 12:24:56 +03:00
damirka
3047c91775
Merge branch 'master' into feature-cli-coverage
2021-04-26 12:04:08 +03:00
collin
3c13aae0e9
fix comments
2021-04-22 11:16:01 -07:00
damirka
8dbb12cfe3
fixed comment
2021-04-22 11:44:22 +03:00
damirka
0d523fb1e1
changes --api to env
2021-04-22 11:35:17 +03:00
damirka
89978512af
fixes clippy and tests
2021-04-21 19:01:29 +03:00
damirka
b8312ab4a4
adds integration tests to Leo CLI
...
- leo tests are now written as cli commands
- leo libraries and binaries removed from package and cli
- small code optimizations and removals
2021-04-21 13:01:11 +03:00
Protryon
6a6e8d536d
fix package
2021-04-19 18:16:13 -07:00
@damndam
6e68444e59
adds --api argument to leo binary
2021-04-17 18:12:25 +03:00
Collin Chin
efa3f78362
Merge pull request #857 from AleoHQ/feature/cli-dpii-updates
...
[CLI, Feature] Adds username substitution to manifest, improves login and error messages
2021-04-15 12:31:47 -07:00
damirka
2a9ed0b432
adds colors to Windows CLI
2021-04-13 20:18:11 +03:00
damirka
fc3c45e056
try ansi_color package for Windows builds
2021-04-13 19:16:04 +03:00
damirka
f3c97390ee
adds name substitution on leo new and init
...
- only adds a name if user is already logged in
- if not, puts [AUTHOR] as it was previously
- before publishing author field is checked in Leo.toml and better error message returned
2021-04-12 16:54:37 +03:00
damirka
ab033ff857
updates login procedure
...
- locally stored token is now verified on leo login and removed if expired
- we allow re-login when credentials or token are passed (did not before)
- we now store username alongside jwt
2021-04-12 15:59:23 +03:00
damirka
1e1697b7fe
Merge branch 'master' into feature/opti-cli-flag
2021-04-10 00:33:19 +03:00
Collin Chin
e291f8e3ed
Update build.rs
2021-04-08 13:06:31 -07:00
damirka
66e30ba0e1
makes -d and -q global
2021-04-08 17:49:08 +03:00
damirka
bbc70d927b
build -> compiling in log
2021-04-06 10:51:05 +03:00
damirka
a1d48d4251
makes --path global
2021-03-31 20:54:16 +03:00
damirka
ef8f11bc64
enable -> disable
2021-03-30 20:32:52 +03:00
damirka
b80cc62368
adds --path argument to Leo command
...
- also features small change in architecture - context is now created in main
2021-03-30 11:43:44 +03:00
damirka
3bd75e387d
removed canonicalization from build flags
2021-03-29 10:21:05 +03:00
damirka
a73b7a2e73
added doc for BuildOptions
2021-03-28 19:34:04 +03:00
damirka
c21114c161
adds compiler optimizations flags to build and other commands
...
- optimizations can either be turned all together or specified
- removed deprecated clippy rules, followed clippy
- removed library file logic from build command, we don't have libraries
2021-03-28 19:28:00 +03:00
damirka
5fdf86f415
added compiler options to constructor and factory methods
2021-03-28 17:49:49 +03:00
ljedrz
34f5ab782a
refactor: introduce a helper ConstraintSet object
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-03-11 13:40:15 +01:00
collin
c8d1125ad9
Merge branch 'console-assert-error' of https://github.com/AleoHQ/leo into console-assert-error
2021-03-08 17:30:13 -08:00
collin
5ab289a922
cargo clippy
2021-03-08 17:28:57 -08:00
Collin Chin
a18b757ff4
Merge branch 'master' into console-assert-error
2021-03-08 16:20:46 -08:00
collin
64cc9fa9c9
remove unsafe unwrap
2021-03-08 16:18:24 -08:00
howardwu
2e7b542b8b
Format and clean up, enable default on snarkvm_algorithms
2021-03-04 11:09:24 -08:00
howardwu
1735038dee
Update algorithms, curves, and gadget traits
2021-03-04 11:02:31 -08:00
howardwu
3c4b8e9f68
Update gadgets traits
2021-03-04 10:38:28 -08:00
howardwu
4f50b44a63
itemize imports
2021-03-04 10:33:51 -08:00
ljedrz
9695442e77
fix: fix build OOMs by performing out-of-scope cleanups for CircuitSynthesizer objects
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-03-02 15:54:58 +01:00
howardwu
2bfb64f83e
Update synthesizer to support new terminology
2021-02-27 13:21:29 -08:00
howardwu
ec056a2877
Migrates synthesizer to a dedicated module
2021-02-27 08:48:20 -08:00
François Garillot
0d7c6d0b65
Simplifies a number of pattern-matches
...
Into the direct `Result` / `Option` combinator they correspond to, for concision / clarity.
Reviewed from automated suggestions generated from [comby-rust](https://github.com/huitseeker/comby-rust ).
2021-02-26 13:03:04 -08:00
howardwu
4fc5f3f30c
Adds 'leo clone' command
2021-02-25 09:29:50 -08:00
damirka
efd193f187
Merge branch 'master' into console-assert-error
2021-02-25 20:24:43 +03:00
howardwu
e29100c70f
Switch output to debug
2021-02-24 21:55:50 -08:00
howardwu
963013f523
Remove duplicate comment
2021-02-24 19:51:29 -08:00
howardwu
34f5e8105d
Prints out number of constraints from now on
2021-02-24 19:49:00 -08:00
howardwu
9206d55408
Clippy
2021-02-24 19:43:03 -08:00
howardwu
73b550011e
Adds safety check for valid package names
2021-02-24 19:25:41 -08:00
howardwu
c61cd3459a
Removes use of 'Default' in CLI
2021-02-24 18:41:36 -08:00
howardwu
a74a141e33
Clean up comments
2021-02-24 18:18:13 -08:00
howardwu
bea3ee31f6
Rename update command 'Sub' to 'Automatic'
2021-02-24 18:16:13 -08:00
howardwu
2e00ff451e
Rename all instances of 'ctx' to 'context'
2021-02-24 18:13:36 -08:00
damirka
6448dac047
Fixes #580
...
- changes error message for console.assert inside main()
- small rewrite of setup command
- adds some autoformatting
2021-02-24 19:17:44 +03:00
bors[bot]
077d0f76f1
Merge #676
...
676: [CLI, PM] Inputs are now published with source code r=collinc97 a=damirka
Fixes #637
- now inputs are published to Aleo PM
- error json message is printed to user
## Motivation
We're unable to publish packages to PM, this PR fixes that.
## Test Plan
TBD: CI for publishing
Co-authored-by: damirka <damirka.ru@gmail.com>
2021-02-18 06:07:11 +00:00
damirka
2b56dd6892
remove commented line
2021-02-17 22:02:52 +03:00
damirka
6caf915701
Fixes #637
...
- now inputs are published to Aleo PM
- error json message is printed to user
2021-02-17 21:49:20 +03:00
Protryon
bf61820115
asg refactor
2021-02-16 13:32:34 -08:00
collin
d6860d2b54
remove unused json deserialize logic
2021-02-11 19:46:32 -08:00
Howard Wu
2c5c2eb886
Update leo/main.rs
2021-02-10 18:47:10 -08:00
damirka
cb050aa43d
removed unused constants from add
2021-02-10 19:24:13 +03:00
damirka
7867ab9d54
imports sorting, --lib flag removed
...
- leo new/init now don't have --lib flag
- imports sorted
- command descriptions match old ones 1-to-1
2021-02-10 19:18:04 +03:00
damirka
deb830ce65
Follow up on comments to PR
...
- fixes import ordering (with rule group_imports)
- removes explicit 0group from pedersen hash example
- updater is now fully-anyhow-ed :)
- fixed doc comment in prove command
- renamed cmd to command in main
2021-02-09 14:08:40 +03:00
damirka
2ff2db2570
Leo CLI is now on StructOpt and Anyhow
...
Features:
- introduces new Command and Route traits for Leo commands and Aleo PM API
- most of the CLI code replace with higher-level abstraction - StructOpt
- anyhow used for error handling, no more custom error classes
- improves API - now every status code has its business logic
- adds global flags (e.g. --quiet to suppress output)
- error messages improved for convenience and better user experience
Closes:
- #604
- #599
- #584
- #277
- #376
2021-02-08 15:48:35 +03:00
collin
c706ef65b8
bump snarkvm module versions
2021-02-04 13:00:30 -08:00
Howard Wu
bdae2425a7
Merge pull request #589 from AleoHQ/add-check-setup
...
[CLI] Adds --skip-key-check option to setup, run and prove commands
2021-02-03 11:31:35 -08:00
howardwu
c935d6a486
Update license to 2021
2021-02-01 20:26:56 -08:00
Collin Chin
2849a27722
Merge pull request #587 from AleoHQ/update/cleanup
...
Removes leo-version from CLI
2021-01-30 14:17:51 -05:00
Damir Shamanaev
ea742a5a4e
adds --skip-key-check option to setup, run and prove commands
2021-01-29 23:01:52 +03:00
Damir Shamanaev
95531ce50f
fixes formatting
2021-01-29 13:18:38 +03:00
Damir Shamanaev
8b6c3371d1
Using token on add if logged in
2021-01-29 12:39:17 +03:00
howardwu
263f52c408
Clippy
2021-01-28 20:10:05 -08:00
howardwu
e7246e146b
Simplify
2021-01-28 20:09:14 -08:00
howardwu
5791392dba
Forgo using tracing to list the versions without a log status
2021-01-28 19:55:53 -08:00
howardwu
0893f58a7c
Removes leo-version
2021-01-28 19:50:18 -08:00
Damir Shamanaev
aca8cb6152
Merge remote-tracking branch 'origin/master' into leo-add-no-logout
2021-01-27 16:29:34 +03:00
Damir S
727981c639
adds leo logout command ( #572 )
2021-01-27 16:28:55 +03:00
Damir Shamanaev
d4a765398c
removes token check on leo add command
...
- loggin for leo add was not necessary
- login/logout CI is separated
- add/remove checked together w/o logging in
2021-01-27 15:33:01 +03:00
Collin Chin
5fbced9164
Merge pull request #565 from damirka/add-empty-line-clap
...
[cli] adds empty line for help command
2021-01-25 16:49:58 -05:00
Collin Chin
dae45d9107
Merge pull request #560 from damirka/fix-cli-login-add
...
[cli] leo login and add commands - missing file
2021-01-22 11:12:25 -05:00
Damir Shamanaev
fd952b8396
Adds empty line for help command in leo CLI
...
- clap 2.X has an issue with adding empty line in the end
- proper fixing of this problem should be by updating to V3
2021-01-22 14:56:05 +03:00
Damir Shamanaev
df22aea4df
removed accidental default implementations
2021-01-21 15:48:11 +03:00
Damir Shamanaev
e879bdb553
fixes #551 issues with leo login and add commands
...
- both bugs were due to missing error handling when JWT was not created
- was a problem only for non-authorized users
- added few minor changes in CLI output making it more helpful
2021-01-21 15:25:32 +03:00
collin
219f2360e5
rustup update && cargo clippy
2021-01-19 13:31:30 -05:00
howardwu
6739ab0040
Expand ci on leo commands
2021-01-17 14:33:52 -04:00
howardwu
1a36a262b8
chore(leo): bump version for new release
2021-01-12 17:03:16 -04:00
Collin Chin
5f80cc4642
Merge pull request #532 from huitseeker/no-panic
...
Removes a panic
2021-01-11 20:52:59 -05:00
François Garillot
d41c1b7138
Removes a panic
...
One panic can be folded in the error case of its enclosing `Result`, an `unwrap` call can be elided through pattern-matching reformulation.
2021-01-08 07:12:23 -08:00
howardwu
2d64515763
Migrate to snarkVM
2020-12-30 12:40:45 -04:00
howardwu
1d9215a1ac
Migrates to hot 1.1.4 and adds memory usage improvements for programs
2020-12-30 11:32:10 -04:00
howardwu
9038c5a17a
chore(leo): bump version for new release
2020-12-14 13:57:01 -04:00
raychu86
1dc27584b5
Cargo clippy
2020-12-04 17:19:48 -08:00
raychu86
9c5b34a14d
Fix updater logic
2020-12-04 15:50:11 -08:00
raychu86
07547af3ae
Add updater errors
2020-12-04 15:49:51 -08:00
howardwu
dbae691e49
chore(leo): bump version for new release
2020-12-03 16:16:42 -04:00
howardwu
74f7f24b19
chore(leo): bump version for new release
2020-12-01 22:57:11 -04:00
collin
53cb83f289
update leo cli message
2020-11-25 00:41:28 -05:00
collin
05a83950e5
bump versions fix conflicts
2020-11-11 12:04:48 -08:00
collin
f28eb8c20a
clippy lints 2
2020-11-10 16:34:44 -08:00
howardwu
0d966d1d5c
chore(leo): bump version for new release
2020-11-06 19:56:12 -08:00
collin
c9b7b0ccc6
Merge branch 'master' of github.com:AleoHQ/leo into feature/license-header
2020-10-21 12:18:54 -07:00
ljedrz
64774cdab6
refactor: accept &Path instead of PathBuf where sufficient
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-16 17:09:44 +02:00
ljedrz
d662b9a236
perf: use Cow to avoid some PathBuf allocations
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-16 16:51:58 +02:00
ljedrz
f59416be1b
refactor: pass &Path instead of &PathBuf as arguments
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-16 16:18:46 +02:00