Skip to content

Commit

Permalink
docs: update CLI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Oct 7, 2024
1 parent 477261b commit 3554729
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/ipsw/cmd/ent.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ func init() {
viper.BindPFlag("ent.ui", entCmd.Flags().Lookup("ui"))
viper.BindPFlag("ent.ui-host", entCmd.Flags().Lookup("ui-host"))
viper.BindPFlag("ent.ui-port", entCmd.Flags().Lookup("ui-port"))
entCmd.MarkFlagsMutuallyExclusive("key", "val", "ui")
entCmd.MarkFlagsMutuallyExclusive("key", "val", "ui", "diff")
entCmd.MarkFlagsMutuallyExclusive("ipsw", "input")
}

// entCmd represents the ent command
Expand All @@ -101,7 +102,10 @@ var entCmd = &cobra.Command{
❯ ipsw ent --ipsw <IPSW> --db /tmp --file WebContent
# Diff two IPSWs
❯ ipsw ent --diff --ipsw <PREV_IPSW> --ipsw <NEW_IPSW> --db /tmp`),
❯ ipsw ent --diff --ipsw <PREV_IPSW> --ipsw <NEW_IPSW> --db /tmp
# Launch Web UI (http://localhost:3993)
❯ ipsw ent --ui --ipsw <IPSW>`),
Args: cobra.NoArgs,
SilenceErrors: true,
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down
3 changes: 3 additions & 0 deletions www/docs/cli/ipsw/ent.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ ipsw ent [flags]

# Diff two IPSWs
❯ ipsw ent --diff --ipsw <PREV_IPSW> --ipsw <NEW_IPSW> --db /tmp

# Launch Web UI (http://localhost:3993)
❯ ipsw ent --ui --ipsw <IPSW>
```

### Options
Expand Down

0 comments on commit 3554729

Please sign in to comment.