Skip to content

Commit

Permalink
change: rename stat => info
Browse files Browse the repository at this point in the history
stat is very unix neckbeardy. info is a lot easier
  • Loading branch information
mroach committed Aug 19, 2021
1 parent 5c91f36 commit 7c155a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ROM file headers are parsed to detect information:
## Commands

* [ls](#rom64-ls)
* [stat](#rom64-stat)
* [info](#rom64-info)
* [convert](#rom64-convert)
* [validate](#rom64-validate)

Expand Down Expand Up @@ -113,14 +113,14 @@ rom64 ls ~/Downloads/n64 -c image_name,file_format_desc,rom_id,region,video_syst
+----------------------+--------------+--------+--------+-------+------+-----------+----------------------------------+-----------------------------------------------------------+
```

## `rom64 stat`
## `rom64 info`

Show information about a single file.

Also supports the same output options as `ls`

```
rom64 stat ~/Downloads/n64/Conker\'s\ Bad\ Fur\ Day\ \(USA\).z64
rom64 info ~/Downloads/n64/Conker\'s\ Bad\ Fur\ Day\ \(USA\).z64
File:
Name: Conker's Bad Fur Day (USA).z64
Size: 64 MB
Expand Down
10 changes: 5 additions & 5 deletions cmd/stat.go → cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ func init() {
var outputFormat string
var columns []string

var statCmd = &cobra.Command{
Use: "stat",
var infoCmd = &cobra.Command{
Use: "info",
Aliases: []string{"info"},
Short: "Get ROM file information",
Args: cobra.MinimumNArgs(1),
Expand Down Expand Up @@ -42,8 +42,8 @@ func init() {
},
}

statCmd.Flags().StringVarP(&outputFormat, "output", "o", "text", "Output format")
statCmd.Flags().StringSliceVarP(&columns, "columns", "c", make([]string, 0), "Column selection")
infoCmd.Flags().StringVarP(&outputFormat, "output", "o", "text", "Output format")
infoCmd.Flags().StringSliceVarP(&columns, "columns", "c", make([]string, 0), "Column selection")

rootCmd.AddCommand(statCmd)
rootCmd.AddCommand(infoCmd)
}

0 comments on commit 7c155a5

Please sign in to comment.