In environments where access to /etc/hosts isn't permitted (like Xcode Cloud) having the hostname for the CLI hard-coded makes it quite hard to use this library at the moment.
So to remedy that I added an argument to the initialiser for the AppPercy class allowing customisation of the hostname, if nil is sent (which is the default argument value) the default hostname "percy.cli" will be used like before, making this a non breaking change for the library consumer.
In environments where access to
/etc/hosts
isn't permitted (like Xcode Cloud) having the hostname for the CLI hard-coded makes it quite hard to use this library at the moment.So to remedy that I added an argument to the initialiser for the AppPercy class allowing customisation of the hostname, if nil is sent (which is the default argument value) the default hostname "percy.cli" will be used like before, making this a non breaking change for the library consumer.