text stringlengths 0 834k |
|---|
No profiles. Use 'profile add' to add a profile. |
END |
} |
1; |
} |
#============================================================================ |
# Help-only topics: |
#============================================================================ |
sub smry_prompt { ""how to interpret the PPM prompt"" } |
sub help_prompt { <<'END' } |
prompt -- information about the PPM3 prompt |
Description |
The PPM prompt can tell you six things: |
1) The current repository; |
2) The current target; |
3) The last search you made on the current repository; |
4) The last query you made on the current target; |
5) The last package you described from this repository; and, |
6) The last package you described from this target. |
To enable the prompt to tell you this information, you must set |
'prompt-context' to '1'. The following examples all assume this setting. |
Examples |
1 Repository and Target: |
Set 'prompt-context' The prompt will resemble: |
ppm:1:1> |
In this case, the first '1' means that the first repository is |
selected. The second '1' means the first target is selected. You can |
prove this by adding another repository and switching to it: |
ppm:1:1> rep add TEMP http://my/repository |
Repositories: |
1. ActiveState Package Repository |
* 2. TEMP |
ppm:1:1> rep 2 |
Repositories: |
1. ActiveState Package Repository |
* 2. TEMP |
ppm:2:1> |
The same is true for targets. If you have multiple versions of Perl |
installed, when you swtich to a different target the second number |
reflects the change. |
If you delete all the repositories, the repository number changes to |
'?'. The same goes for targets. If either item is indicated by a |
question mark, you must configure a repository or target before |
proceeding. |
2 Search and Query: |
PPM stores searches and search results from in the current session. |
The prompt displays the search number: |
ppm:1:1> search Text |
[results displayed here] |
ppm:1:1:s1> |
The 's1' indicates that the last search you performed can be viewed |
again by entering 'search 1'. Type 'search' with no arguments to |
view the list of cached searches: |
ppm:1:1:s1> search |
Search Result Sets: |
* 1. Text |
If you then enter 'search 1', you will see the same results as when |
you typed 'search Text' earlier. If you search for something else |
('search Parse') then the number will change to 's2': |
ppm:1:1:s1> search Parse |
[results displayed here] |
ppm:1:1:s2> |
The same indicators apply to the query command. When you run a |
query, a numerical indicator displays the current query: |
ppm:1:1:s1> query PPM |
[results displayed here] |
ppm:1:1:s1:q1> |
You can view the past queries with 'query', and view results by |
querying a particular number. |
3 Describe and Properties: |
When you use the describe command with the numerical switch (to view |
package information based on the package number in the last search |
or query), PPM sets that index to the current index. If you use the |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.