text stringlengths 0 834k |
|---|
@fields. |
END |
return; |
} |
else { |
$val = lc($val); |
$o->cache_set_index('search', -1); # invalidates current indices. |
$o->cache_set_index('query', -1); |
} |
} |
elsif ($key eq 'fields') { |
$val = 'name version abstract' if $un; |
my @fields = sort_fields(); |
my @vals = split ' ', $val; |
for my $v (@vals) { |
unless (grep { lc $v eq lc $_ } @fields) { |
$o->warn(<<END); |
Error adding field '$v': should be one of: |
@fields. |
END |
return; |
} |
} |
$val = lc $val; |
} |
if ($un and $key eq 'tempdir') { |
$o->warn(""Can't unset 'tempdir': use 'set' instead.\n""); |
return; |
} |
# Check for any cache-clearing that needs to happen: |
if (exists $cache_clear_keys{$key}) { |
$o->cache_clear('search'); |
$o->cache_clear('query'); |
} |
if ($lib_keys{$key}) { PPM::UI::config_set($lib_keys{$key}, $val) } |
else { |
$o->{SHELL}{conf}{DATA}{$key} = $val; |
$o->{SHELL}{conf}->save; |
} |
$o->inform(<<END); |
Setting '$key' set to '$val'. |
END |
} |
sub smry_settings { ""view or set PPM options"" } |
sub help_settings { <<'END' } |
settings -- View or Set PPM Settings |
Synopsis |
set Displays current settings |
set <name> Displays the current setting of the given <name> |
set <name> <value> Sets <name> to <value> |
unset <name> Sets <name> to a ""false"" value: '0' for boolean |
settings, '' for others. |
Description |
The settings command is used to configure the default PPM environment. |
Settings such as the number of lines displayed per page, |
case-sensitivity, and the log file are configured using the settings |
command. |
Setting names may be abbreviated to uniqueness. For example, instead of |
typing 'case-sensitivity', you may type 'case'. |
Available settings: |
NAME VALUE DESCRIPTION |
case-sensitivity 1 or 0 If 1, searches and queries are |
case-sensitive. |
download-chunksize integer If this is set to a positive, |
non-zero integer, PPM updates the |
status after ""integer"" of bytes |
transferred during an install or |
upgrade. |
fields fields A space-separated list of fields to |
display in the search results. Valid |
fields are: |
ABSTRACT |
AUTHOR |
NAME |
REPOSITORY |
TITLE |
VERSION |
Usually, NAME and TITLE have the same |
content. |
follow-install 1 or 0 See 'help install' for details. |
force-install 1 or 0 See 'help install' for details. |
install-verbose 1 or 0 If 0, suppresses most output when |
installing packages. If 1, PPM prints |
each file as it is installed. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.