Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 276
feat: rollkit rebuild command to update entrypoint#1707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
5b5e2dcf3f65944b8c846aacf3d5dc3521a3039e34a425084a180647aaf5e2e7031c2af6b94f1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| package commands | ||
| import ( | ||
| "log" | ||
| rollconf "github.com/rollkit/rollkit/config" | ||
| "github.com/spf13/cobra" | ||
| ) | ||
| // RebuildCmd is a command to rebuild rollup entrypoint | ||
| var RebuildCmd = &cobra.Command{ | ||
| Use: "rebuild", | ||
| Short: "Rebuild rollup entrypoint", | ||
| Long: "Rebuild rollup entrypoint specified in the rollkit.toml", | ||
| Run: func(cmd *cobra.Command, args []string) { | ||
| var err error | ||
| rollkitConfig, err = rollconf.ReadToml() | ||
| if err != nil { | ||
| log.Fatalf("Could not read rollkit.toml file: %s", err) | ||
yarikbratashchuk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| } | ||
| if _, err := buildEntrypoint(rollkitConfig.RootDir, rollkitConfig.Entrypoint, true); err != nil { | ||
| log.Fatalf("Could not rebuild rollup entrypoint: %s", err) | ||
| } | ||
| }, | ||
| } | ||
yarikbratashchuk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| ## rollkit rebuild | ||
yarikbratashchuk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| Rebuild rollup entrypoint | ||
| ### Synopsis | ||
| Rebuild rollup entrypoint specified in the rollkit.toml | ||
| ``` | ||
yarikbratashchuk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| rollkit rebuild [flags] | ||
| ``` | ||
| ### Options | ||
| ``` | ||
yarikbratashchuk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| -h, --help help for rebuild | ||
| ``` | ||
| ### Options inherited from parent commands | ||
| ``` | ||
yarikbratashchuk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| --home string directory for config and data (default "HOME/.rollkit") | ||
| --log_level string set the log level; default is info. other options include debug, info, error, none (default "info") | ||
| --trace print out full stack trace on errors | ||
| ``` | ||
| ### SEE ALSO | ||
| * [rollkit](rollkit.md) - The first sovereign rollup framework that allows you to launch a sovereign, customizable blockchain as easily as a smart contract. | ||
yarikbratashchuk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
Uh oh!
There was an error while loading. Please reload this page.