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
ljedrz
69d35063f2
perf: use .to_string() instead of single-param format!
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-16 15:52:45 +02:00
ljedrz
529d87bc88
perf: remove some generic unnecessary allocations
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-16 15:52:45 +02:00
ljedrz
e1e22a2310
perf: vector pre-allocation and associated tweaks
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-08 11:47:03 +02:00
ljedrz
300666827e
fmt: run cargo +nightly fmt on the changes
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-06 13:07:30 +02:00
ljedrz
87f7d748a8
clippy: fix unit_arg
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-06 12:50:43 +02:00
ljedrz
08afb0e604
clippy: fix redundant_pattern_matching
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-06 12:50:43 +02:00
ljedrz
1fc9b902dd
clippy: fix redundant_clone & clone_on_copy
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-06 12:50:43 +02:00
ljedrz
93369aed33
clippy: fix ptr_arg
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-06 12:50:43 +02:00
ljedrz
919c1dcada
clippy: fix single_match
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-06 12:50:43 +02:00
ljedrz
a4891c6f00
clippy: fix len_zero
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-06 12:50:43 +02:00
ljedrz
80bb3033fd
clippy: fix single_char_pattern
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-10-06 12:50:43 +02:00
collin
692417a952
add license header check and missing licenses
2020-09-20 15:27:02 -07:00
howardwu
2620ae7bc2
chore(leo): bump version for new release
2020-09-03 03:08:33 -07:00
howardwu
6c24c0697f
Update span message
2020-09-03 02:54:43 -07:00
Howard Wu
788300ef93
Merge pull request #343 from AleoHQ/fix/input-error-messages
...
Add file path to all error messages
2020-09-03 02:50:13 -07:00
Howard Wu
5533f85d31
Merge pull request #345 from AleoHQ/bug/array_index
...
Fix critical array indexing bug
2020-09-03 02:49:21 -07:00
howardwu
40ac13e317
Fix critical array indexing bug
2020-09-03 00:30:57 -07:00
raychu86
198efb0b4c
Update comments for ArgumentType
2020-09-03 00:26:30 -07:00
raychu86
063c4b3f3b
Add possible values for argument type
2020-09-03 00:21:07 -07:00
raychu86
f06d28188e
Update logging outputs
2020-09-03 00:07:09 -07:00
collin
340e633470
fix state file errors
2020-09-02 23:05:03 -07:00
collin
0bb8c42731
fix input file errors
2020-09-02 22:59:54 -07:00
raychu86
7cacef0dfb
Add leo update automatic functionality
2020-09-02 22:29:15 -07:00
raychu86
6392bf2826
Add set_update_automatic to config
2020-09-02 22:28:34 -07:00
raychu86
3d3f4e8588
Update leo cli subcommand usage
2020-09-02 22:26:32 -07:00
raychu86
bcf5187af2
Update leo config
2020-09-02 21:32:48 -07:00
Howard Wu
965e54ae38
Merge pull request #340 from AleoHQ/feature/leo-remove
...
Implement `leo remove`
2020-09-02 20:32:56 -07:00
Howard Wu
b0c088d978
Merge pull request #320 from AleoHQ/refactor/packages
...
Refactor file system operations into `leo-package`
2020-09-02 20:32:17 -07:00
raychu86
f7466f4264
Implement leo remove functionality
2020-09-02 19:23:34 -07:00
raychu86
3df5405483
Integrate leo updater to cli
2020-09-02 17:21:01 -07:00
raychu86
a2a0eca892
Use updater for leo update cli
2020-09-02 17:20:20 -07:00
raychu86
e320d68aea
Implement leo updater
2020-09-02 17:19:23 -07:00
raychu86
5755b3fdd7
Merge master
2020-09-02 14:49:37 -07:00
raychu86
8eb167d873
Add support for remote
2020-09-02 12:56:35 -07:00
raychu86
6206a96a89
Update package_name to package
2020-09-02 12:13:16 -07:00
howardwu
0c82495ee6
Rename FILE_NAME -> FILENAME
2020-08-29 00:28:24 -07:00
howardwu
d3e7e610b8
Rename lib -> library
2020-08-29 00:27:00 -07:00
howardwu
d67b5109d4
Update initialize to verify first, then initialize package
2020-08-29 00:24:13 -07:00
howardwu
9884320dd6
Merge branch 'master' of https://github.com/AleoHQ/leo into refactor/packages
2020-08-28 23:55:49 -07:00
raychu86
a84695e53c
Update usage of LeoPackage in leo new
2020-08-28 23:47:25 -07:00
howardwu
3b737b2a34
Update leo cli version to dedicated file
2020-08-28 23:38:30 -07:00
raychu86
e25db53818
Update usage of LeoPackage in leo init
2020-08-28 23:21:41 -07:00
raychu86
40f4ffad51
Add PackageError to CLIError
2020-08-28 23:20:57 -07:00
raychu86
f5aba15d35
Update the remote convention in leo.toml
2020-08-28 20:15:08 -07:00
raychu86
535b9f0aa0
Add README.md generation to leo new
2020-08-28 18:47:37 -07:00
howardwu
12971b9cbb
Update Cargo.toml
2020-08-27 01:33:00 -07:00
Howard Wu
0023ee8ef4
Merge pull request #306 from AleoHQ/feature/tracing
...
Migrate to tracing for console output
2020-08-27 01:07:56 -07:00
howardwu
cc183475ee
Update logging with custom formatter
2020-08-27 00:55:29 -07:00
collin
948188ddaf
fix ugly errors
2020-08-21 19:57:27 -07:00
collin
5ab4d62a2b
Fix styling and naming
2020-08-21 19:53:56 -07:00
collin
55fdb24bfb
add tracing spans to commands. fix clean command
2020-08-21 19:22:01 -07:00
collin
bcab2df709
fix proving output
2020-08-21 18:44:19 -07:00
collin
551595026b
fix test output formatting
2020-08-21 18:08:14 -07:00
collin
2e3333cd25
fix test, login, build console output
2020-08-21 17:39:48 -07:00
collin
912a192b5c
use tracing in compiler
2020-08-21 16:36:50 -07:00
raychu86
ba3c0872f4
Update auto update displays and confirmation prompts
2020-08-21 16:28:08 -07:00
collin
c22ddffe74
impl cli error macro
2020-08-21 16:17:08 -07:00
collin
3f1b1e857c
use tracing in package and leo cli
2020-08-21 16:06:48 -07:00
collin
da843e452e
use tracing for build command
2020-08-21 15:49:51 -07:00
raychu86
612a003c1b
Update config name to config.toml
2020-08-21 15:43:03 -07:00
howardwu
f063d989ff
Update to leo_lang
2020-08-21 04:43:28 -07:00
raychu86
0f505bf876
Update comments and documentation
2020-08-21 01:59:02 -07:00
raychu86
34aac43905
Update config file name
2020-08-21 01:56:41 -07:00
raychu86
45eb0b5e38
implement binary auto update
2020-08-21 01:49:34 -07:00
raychu86
d6b0edbd83
Update imports
2020-08-21 01:49:02 -07:00
raychu86
758bae9fea
Add config
2020-08-21 01:47:59 -07:00
howardwu
0405ff4f89
Bump version and repair Leo update description
2020-08-19 03:00:30 -07:00
howardwu
3a233add99
Merge branch 'master' of https://github.com/AleoHQ/leo into feature/update_command
2020-08-19 01:43:53 -07:00
Howard Wu
844a05cc8e
Merge pull request #260 from AleoHQ/update/package-manager-url
...
Update package manager url
2020-08-18 23:48:59 -07:00
collin
b00edea686
fix publish message
2020-08-18 23:02:47 -07:00
Raymond Chu
396f59724a
Update package manager url
2020-08-18 22:19:09 -07:00
Sergey Isaev
032b0b3ee2
Order consts
2020-08-18 15:52:59 +03:00
Sergey Isaev
66b878c7c5
Implement self update Leo command
2020-08-18 15:46:39 +03:00
raychu86
ae10a78eb5
Add license header
2020-08-18 03:50:26 -07:00
Howard Wu
5a33c34c5e
Merge pull request #250 from AleoHQ/feature/update-publish
...
Implement leo publish
2020-08-17 01:40:36 -07:00
Howard Wu
2c24c51b42
Merge branch 'master' into feature/leo-cli
2020-08-17 01:26:10 -07:00
raychu86
079da66ec7
cargo fmt
2020-08-16 21:57:21 -07:00
raychu86
4d8fb03dcf
Add leo publish implementation
2020-08-16 21:50:44 -07:00
raychu86
9428a6a41a
Add README.md generation to leo init
2020-08-16 19:48:25 -07:00
raychu86
953de07b56
Handle unwraps
2020-08-16 18:15:53 -07:00
raychu86
82bac674e9
cargo fmt
2020-08-16 17:55:07 -07:00
raychu86
15d9b97067
Merge master
2020-08-16 17:48:53 -07:00
raychu86
6b8f3d23fa
Add leo add impl with correct imports folder
2020-08-16 17:36:31 -07:00
raychu86
0dd3e0b3d3
Fix comments
2020-08-16 14:20:52 -07:00
raychu86
502eea7ddd
Implement leo add command
2020-08-16 14:01:32 -07:00
raychu86
3f8134f890
Add a dedicated credentials file
2020-08-16 00:36:22 -07:00
collin
9a2fe61c6f
write test output to filename specified by context
2020-08-15 23:25:34 -07:00
collin
5efa131c65
impl test context with test inputs
2020-08-15 22:09:22 -07:00
raychu86
9c129ab61f
Leo login now uses the APM authenticate for longer token expiration
2020-08-15 20:38:05 -07:00
raychu86
6660c57faf
Add credential storing to *home_dir*/.leo/credentials
2020-08-15 18:54:46 -07:00
howardwu
89033996cc
Reorder commands
2020-08-15 02:53:56 -07:00
Howard Wu
b3ee78155b
Merge pull request #238 from AleoHQ/feat/rename
...
Renames load and unload to add and remove
2020-08-15 02:53:26 -07:00
howardwu
c3fe4db461
Fix typo
2020-08-15 02:18:20 -07:00
howardwu
f5fdf9c8aa
Renames load and unload to add and remove
2020-08-15 02:12:44 -07:00
howardwu
cb26b6b798
Cleans up login command
2020-08-15 01:38:20 -07:00
Howard Wu
b84e910c0c
Merge pull request #196 from AleoHQ/feature/serialize-circuit
...
Feature/serialize circuit
2020-08-14 20:53:08 -07:00
Sergey Isaev
d152636d39
Update publish command corresponding the new API
2020-08-13 14:16:57 +03:00
Sergey Isaev
007faa4329
Merge branch 'master' of github.com:AleoHQ/leo into publish_command
2020-08-13 13:59:48 +03:00
collin
efce3df6cf
clean up files
2020-08-13 01:34:17 -07:00
collin
76009cb843
impl circuit synthesizer and serialized circuit
2020-08-13 01:21:39 -07:00