php-semver-checker icon indicating copy to clipboard operation
php-semver-checker copied to clipboard

Generate output in HTML

Open tomzx opened this issue 10 years ago • 3 comments

In order for this tool to be reusable in other tools, it should be able to output in HTML.

Currently suggested option name is--to-html folder.

tomzx avatar Mar 13 '15 02:03 tomzx

@tomzx What about adding a --format option for which text could be the default and then using the --to-file option proposed in #53 to dump the output to a file (regardless the format)?

xabbuh avatar Mar 13 '15 18:03 xabbuh

@xabbuh The issue is that HTML will probably end up containing a couple more files, namely js and css files (with the possibility of fonts as well). Thus, it would probably not make sense to use --to-file.

Furthermore, I think it's cleaner to specify outputs separately as you can output various formats all at once. I also don't like having "dependent" options, that is, what happens if I say --format text but do not put --to-file? Is the whole output supposed to be in the format specified? Is the option supposed to be ignored since I didn't pass where to write the results?

tomzx avatar Mar 13 '15 22:03 tomzx

I also don't like having "dependent" options, that is, what happens if I say --format text but do not put --to-file? Is the whole output supposed to be in the format specified? Is the option supposed to be ignored since I didn't pass where to write the results?

I think that's pretty fine and the nature how you use command-line tools on UNIX-like systems. For example, I may want to further process the output generated and pipe it to other commands.

xabbuh avatar Mar 14 '15 08:03 xabbuh