Giter Site home page Giter Site logo

provide-cli's People

Contributors

adunne09 avatar firetronp75 avatar kthomas avatar maratk avatar mdawn avatar muncman avatar pkankipati avatar skosito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

provide-cli's Issues

Cannot generate invite in CLI. GO Panic

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.

Unable to start stack in CLI

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

Pagination update for CLI

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 fails to create workgroup

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.

Narrow window width causes issues in CLI

When a prompt extends into a new line due to a narrow window width, user is unable to agree to privacy policy.

When entering y to agree to policy, the command is not recognized as it causes a new line to be created.

image

`prvd networks init`

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" } } }'

`prvdnetwork` CLI commands

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

Add a `billing` module to the CLI

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

  • add a card, if there is no card on file
    -- needs to capture the name on the card, card number, expiration date, security number and billing zip code
  • update the existing card
    -- last four of existing card should be displayed along with the expiration date
  • remove the existing card

If no card is on file, the user's access is set at the default access level

Unable to run provide-cli

Make install command is throwing an Error "undefined io.Discard" at github.com/provideplatform/provide-go/pgrok/tunnel.go :378:12

Top-level commands menu handling

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

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.