astrogo / fitsio

fitsio is a pure-Go package to read and write `FITS` files
BSD 3-Clause "New" or "Revised" License
53 stars 24 forks source link

cmd: add view-fits #11

Closed tbellembois closed 8 years ago

tbellembois commented 8 years ago

fixes #12

sbinet commented 8 years ago

it would be great UI-wise, to add a help menu so users can get the basic usage commands. it's relatively easy to do so via the flag package: https://godoc.org/flag#example-package

so one could type:

$> view-fits --help

here is an old example of mine: https://github.com/sbinet/mk/blob/master/main.go#L62

tbellembois commented 8 years ago

PTAL

sbinet commented 8 years ago

LGTM. please squash and re-push, and then it's good to go. (it would be great to also be able to view remote files - over http(s), ftp, ssh, etc... - but this can be for another CL)

sbinet commented 8 years ago

thanks.