ion Action can be one of several things.
info
Spits out a bunch of theme information in JSON form.
Mainly used for debugging, and gedit integration.
pullAll
Pulls all themes from t
ly and remotely present will be pulled.
=cut
use WWW::Shopify::Tools::Themer;
use JSON qw(encode_json decode_json);
my @ARGS = ();
my $settings = {directory => '.'};
my $interval = 1;
GetOptions(
ectory} . "/.shopsettings", $settings->{directory} . "/.shopmanifest");
my $filesettings = decode_json(read_file($settingFile)) if (-e $settingFile);
for (keys(%$filesettings)) { $settings->{$_} = $fi
use WWW::Shopify;
use WWW::Shopify::Private;
package WWW::Shopify::Tools::Themer::Manifest;
use JSON;
use File::stat;
use File::Slurp;
use Scalar::Util qw(weaken);
# When we save things down, we tr
_[1];
my $json = decode_json(read_file($_[1]));
for (keys(%{$json->{files}})) {
$json->{files}->{$_}->{'local'} = DateTime->from_epoch(epoch => $json->{files}->{$_}->{'local'});
$json->{files}->
$json->{files}->{$_}->{'remote'});
$json->{files}->{$_}->{'system'} = DateTime->from_epoch(epoch => $json->{files}->{$_}->{'system'});
}
$_[0]->{files} = $json->{files};
$_[0]->{themes} = $json-