1 |
< |
#!/usr/local/bin/perl5 -w |
1 |
> |
#!/usr/local/bin/perl5 -w |
2 |
|
# |
3 |
|
# User Interface |
4 |
|
# |
5 |
|
|
6 |
|
#use Scram::SCRAM; |
7 |
|
use ActiveDoc::CommandLineInterface; |
8 |
+ |
use ActiveDoc::SimpleUserInterface; |
9 |
|
use Utilities::PathMod; |
10 |
+ |
use Configuration::Tool; |
11 |
|
|
12 |
|
# Set up our scram objects |
13 |
|
$self={}; |
14 |
< |
|
14 |
> |
$self->{UI}=ActiveDoc::SimpleUserInterface->new(); |
15 |
|
# Search for configuration resource file |
16 |
|
$self->{configpath}="$ENV{HOME}:$ENV{SCRAM_HOME}/configuration"; |
17 |
|
$self->{PathMod}=Utilities::PathMod->new(); |
18 |
|
$self->{file}=$self->{PathMod}->SearchPath( |
19 |
|
$self->{configpath},".scramrc"); |
20 |
|
|
21 |
< |
#$self->{cli}=ActiveDoc::CommandLineInterface->new(qw(file:$self->{file} UserInterface_basic)); |
22 |
< |
$self->{cli}=ActiveDoc::CommandLineInterface->new(qw(Scram::SCRAM ActiveDoc::UserInterface_basic)); |
21 |
< |
|
21 |
> |
#$self->{cli}=ActiveDoc::CommandLineInterface->new(qw(Scram::SCRAM ActiveDoc::UserInterface_basic)); |
22 |
> |
$self->{cli}=ActiveDoc::CommandLineInterface->new(qw(Scram::SCRAM), $self->{UI}); |
23 |
|
$self->{cli}->parse(@ARGV) |
23 |
– |
|
24 |
– |
#@allowed_commands=qw(project build install version list arch setup runtime devtest); |
25 |
– |
|