MCPcopy Create free account
hub / github.com/0xsequence/czip / init

Function init

compressor/cmd/czip-compressor/main.go:29–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func init() {
30 rootCmd.PersistentFlags().BoolP("use-storage", "s", false, "Use stateful read/write storage during compression.")
31 rootCmd.PersistentFlags().StringP("provider", "p", "", "Ethereum RPC provider URL.")
32 rootCmd.PersistentFlags().StringP("contract", "c", "", "Contract address of the decompressor contract.")
33 rootCmd.PersistentFlags().String("cache-dir", "/tmp/czip-cache", "Path to the cache dir for indexes.")
34 rootCmd.MarkFlagsRequiredTogether("provider", "contract")
35
36 rootCmd.PersistentFlags().StringSlice("allow-opcodes", []string{}, "Will only encode using these operations, separated by commas.")
37 rootCmd.PersistentFlags().StringSlice("disallow-opcodes", []string{}, "Will not encode using these operations, separated by commas.")
38 rootCmd.MarkFlagsMutuallyExclusive("allow-opcodes", "disallow-opcodes")
39
40 rootCmd.AddCommand(encodeAnyCmd)
41 rootCmd.AddCommand(extrasCmd)
42
43 addEncodeCallCommands(rootCmd)
44 addEncodeCallsCommands(rootCmd)
45 addEncodeSequenceCommands(rootCmd)
46}
47
48func fail(err error) {
49 fmt.Print("Error: ")

Callers

nothing calls this directly

Calls 3

addEncodeCallCommandsFunction · 0.85
addEncodeCallsCommandsFunction · 0.85

Tested by

no test coverage detected