#!/usr/bin/env perl
use Mojo::Base -strict;

use File::Basename 'dirname';
use File::Spec;

use Mojo::Command;

# Make it work if it is not installed.
use lib join '/',
  File::Spec->splitdir( dirname(__FILE__) ),
  File::Spec->updir,
  'lib';

# Set app name.
$ENV{MOJO_APP} = 'PNI::GUI';

# TODO: $ENV{MOJO_MODE} |= production, document it as PNI ENV

my $command = Mojo::Command->new( namespaces => ['PNI::Command'] );
$command->start;

