provideplatform / provide-cli Goto Github PK
View Code? Open in Web Editor NEWCLI for managing distributed infrastructure and applications
License: Apache License 2.0
CLI for managing distributed infrastructure and applications
License: Apache License 2.0
prvd baseline workgroups participants invite
Running Go1.16.15 darwin/arm64
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/provideplatform/provide-cli/prvd/baseline/participants.inviteParticipantRun(0x1059da280, 0x105a1e738, 0x0, 0x0)
/Users/daven/provideplatform/provide-cli/prvd/baseline/participants/participants_invite.go:80 +0xbb8
github.com/provideplatform/provide-cli/prvd/baseline/participants.generalPrompt(0x1059da280, 0x105a1e738, 0x0, 0x0, 0x1052c3665, 0x6)
/Users/daven/provideplatform/provide-cli/prvd/baseline/participants/participants_prompt.go:46 +0x1a4
github.com/provideplatform/provide-cli/prvd/baseline/participants.inviteParticipant(0x1059da280, 0x105a1e738, 0x0, 0x0)
/Users/daven/provideplatform/provide-cli/prvd/baseline/participants/participants_invite.go:42 +0x54
github.com/spf13/cobra.(*Command).execute(0x1059da280, 0x105a1e738, 0x0, 0x0, 0x1059da280, 0x105a1e738)
/Users/daven/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x1d0
github.com/spf13/cobra.(*Command).ExecuteC(0x1059d7f80, 0x200000003, 0x14000000180, 0x14000000180)
/Users/daven/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x258
github.com/spf13/cobra.(*Command).Execute(...)
/Users/daven/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/provideplatform/provide-cli/prvd.Execute()
/Users/daven/provideplatform/provide-cli/prvd/root.go:37 +0x30
main.main()
@kthomas on the 18th you changed which token the workgoup contract is fetched with. It was using the ApplicationAccessToken
now it is using the OrganizationAccessToken
.
But the workgroup contract creation is still using the ApplicationAccessToken
. So the contract is not found when fetched.
Reverting the change from the 18th fixes the bug. But since that change was probably intended, the fix should be to change which token is used for contract creation.
But doing this correct fix, will make the bug remain for all contracts created prior to this change.
So in order to finish this change, we might want to destroy all old workgroups. @kthomas please advise.
Using the org token to create the workgroup contract gives a 401 and I'm still trying to figure out why.
@kthomas Not sure if you did the related change in ident yet. Can't test until you do. Don't merge yet.
Receive the following error message when using organization
flag. Does not occur when selected from prompt:
❯ prvd baseline stack start --organization e1aef3d5-9cf1-4a2c-b9fd-62564c116b18
✔ PRVD
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x38 pc=0x1014aedc4]
goroutine 1 [running]:
github.com/provideplatform/provide-cli/prvd/common.PromptOrganizationAuthorization(0x0)
/Users/daven/provideplatform/provide-cli/prvd/common/config.go:183 +0x44
github.com/provideplatform/provide-cli/prvd/common.RequireOrganizationToken(0x0, 0x0)
/Users/daven/provideplatform/provide-cli/prvd/common/config.go:172 +0x9c
github.com/provideplatform/provide-cli/prvd/baseline/stack.authorizeWorkgroupContext()
/Users/daven/provideplatform/provide-cli/prvd/baseline/stack/stack_start.go:627 +0x38
github.com/provideplatform/provide-cli/prvd/baseline/stack.authorizeContext()
/Users/daven/provideplatform/provide-cli/prvd/baseline/stack/stack_start.go:587 +0x20
github.com/provideplatform/provide-cli/prvd/baseline/stack.runStackStart(0x101c7ef00, 0x140002f14a0, 0x0, 0x2)
/Users/daven/provideplatform/provide-cli/prvd/baseline/stack/stack_start.go:192 +0xb0
github.com/provideplatform/provide-cli/prvd/baseline/stack.generalPrompt(0x101c7ef00, 0x140002f14a0, 0x0, 0x2, 0x101566d64, 0x5)
/Users/daven/provideplatform/provide-cli/prvd/baseline/stack/stack_prompt.go:160 +0x8c0
github.com/provideplatform/provide-cli/prvd/baseline/stack.startStack(0x101c7ef00, 0x140002f14a0, 0x0, 0x2)
/Users/daven/provideplatform/provide-cli/prvd/baseline/stack/stack_start.go:180 +0x54
github.com/spf13/cobra.(*Command).execute(0x101c7ef00, 0x140002f1480, 0x2, 0x2, 0x101c7ef00, 0x140002f1480)
/Users/daven/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x1d0
github.com/spf13/cobra.(*Command).ExecuteC(0x101c7bf80, 0x200000003, 0x14000000180, 0x14000000180)
/Users/daven/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x258
github.com/spf13/cobra.(*Command).Execute(...)
/Users/daven/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/provideplatform/provide-cli/prvd.Execute()
/Users/daven/provideplatform/provide-cli/prvd/root.go:37 +0x30
main.main()
/Users/daven/provideplatform/provide-cli/cmd/prvd/main.go:6 +0x20
All lists (organizations, applications, tokens, etc) should be paginated if they exceed the default display settings.
User should be able to utilize N for Next page
and P for Previous page
.
User should be able to utilize keyboard arrow keys to navigate through the items on a page.
User should be able to press Enter or Return to select an item on a page.
User should be able to press X to escape the menu and cancel the command.
CLI Workgroup creation times out during org registry contract creation. Eth-Sepolia and Polygon Mumbai used for workgroup creation - Provide Payments has an adequate balance of each.
Unable to sent protocol message because proper workgroups are not displayed due to incorrect token being used to query for workgroups (user instead of org scoped)
This command should present a context menu that enables the user to select and / or enter information to create a new network. The specific menu options should be detailed here:
{ "name": "baseline testnet", "cloneable": false, "config": { "native_currency": "TEST", "platform": "evm", "engine_id": "ethash", "chain": "test", "protocol_id": "pow", "chainspec": { "config": { "homesteadBlock": 0, "eip150Block": 0, "eip155Block": 0, "eip158Block": 0, "byzantiumBlock": 0, "constantinopleBlock": 0, "petersburgBlock": 0 }, "alloc": {}, "coinbase": "0x0000000000000000000000000000000000000000", "difficulty": "0x20000", "extraData": "", "gasLimit": "0x2fefd8", "nonce": "0x0000000000000042", "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "timestamp": "0x00" } } }'
ident.UpdateOrganization is called multiple times
currently only have 1 endpoint per org, but we should have 1 endpoint per subjectAccount
prvd baseline subject-accounts
Currently, CLI is creating application but not workgroup.
Need to Create subject account for org.
@adunne09 workgroups created in CLI are not visible in Shuttle
prvdnetwork authenticate
prvdnetwork vaults
--init
--keys
--list
prvdnetwork node
--start
---full
---validator
--stop
--list
--delete
prvdnetwork governance
--propose
---startdate/time
---enddate/time
---summary
---url (for additional info)
--vote
---proposal
----id or defaults to latest
---confirm
---reject
prvdnetwork accounts
--create
--update
--list
Remove run
from the list of available commands under prvd baseline stack
As a user, I should be able to add, update, and remove a credit card on my account from within the CLI so that I can pay for services, such as Tunnelz (pgrok).
prvd billing
should prompt the user to
If no card is on file, the user's access is set at the default access level
CLI current fails to run stack with the following error:
2022/07/08 14:47:18 failed to resolve global organization registry contract
Make install command is throwing an Error "undefined io.Discard" at github.com/provideplatform/provide-go/pgrok/tunnel.go :378:12
As a user, when I type any command from the prvd
command list without any additional arguments, the response should default to a menu response, rather than ...is not a valid command
The menu should contain a list of commands available, as well as --help
For example, typing prvd api_tokens
should result in a menu offering such as:
init
list
help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.