Difference between pages "Svn info" and "Get moods"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>AlbinoRhino
m
 
imported>Bale
(r12060)
 
Line 1: Line 1:
 
{{
 
{{
#vardefine:name|svn_info}}{{
+
#vardefine:name|get_moods}}{{
#vardefine:return_type|record}}{{
+
#vardefine:return_type|string [int]}}{{
 +
#vardefine:aggregate|yes}}{{
  
 
FunctionPage|
 
FunctionPage|
Line 11: Line 12:
 
return_type={{#var:return_type}}|
 
return_type={{#var:return_type}}|
 
return_also={{#var:return_also}}|
 
return_also={{#var:return_also}}|
parameter1={{Param|string|projectname}}|
 
p1desc={{Pspan|projectname}} is the name of a project which may exist on an SVN repo|
 
 
}}|
 
}}|
  
function_description=Provides information about a given project. {{Pspan|projectname}} will match any unique substring of any project in the /svn folder, but it is case sensitive. It returns a record with five fields:
+
function_description=This function returns an integer indexed list of all currently defined mood names.|
<syntaxhighlight>
+
needscode=yes|
record {
+
cli_equiv=The CLI command <code> mood listall </code> will print the same list in the CLI.|
  string url;                // The url that the project was checked out from
 
  int revision;              // The revision that the working copy is at
 
  string last_changed_author; // The author who committed the last change
 
  int last_changed_rev;      // The revision that most recently modified this working copy (note, not necessarily the same as revision field)
 
  string last_changed_date;  // The date/time when lastChangedRevision happened
 
};
 
</syntaxhighlight>|
 
  
code1={{CodeSample|
+
see_also={{SeeAlso|my_effects|have_effect}}|
title=Code Sample|
 
description=Checks svn repo for a project|
 
code=
 
<syntaxhighlight>
 
print( "To install ChIT, copy/paste the following line into your CLI and hit enter." );
 
print( "svn checkout " + svn_info( "mafiachit" ).url, "blue" );
 
</syntaxhighlight>}}|
 
cli_equiv=The CLI command "svn list" provides a list of all installed scripts.|
 
see_also={{SeeAlso|svn_exists|svn_at_head}}|
 
 
}}
 
}}
  
[[Category:Miscellaneous Functions]]
+
[[Category:Adventuring]]

Revision as of 08:13, 20 November 2014

needs(code_samples);

Function Syntax

string [int] get_moods()

This function returns an integer indexed list of all currently defined mood names.

CLI Equivalent

The CLI command mood listall will print the same list in the CLI.

See Also

my_effects() | have_effect()