Skip to content

Generate output in HTML #52

@tomzx

Description

@tomzx
Owner

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.

Activity

xabbuh

xabbuh commented on Mar 13, 2015

@xabbuh

@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)?

tomzx

tomzx commented on Mar 13, 2015

@tomzx
OwnerAuthor

@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?

xabbuh

xabbuh commented on Mar 14, 2015

@xabbuh

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tomzx@xabbuh

        Issue actions

          Generate output in HTML · Issue #52 · tomzx/php-semver-checker