Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | integrated test commands into the reference |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | wolfgangHelpCmd |
| Files: | files | file ages | folders |
| SHA1: |
f3f7d9e53f7724cbccd70eb9b48c6489 |
| User & Date: | wolfgang 2010-10-08 19:03:38.000 |
Context
|
2010-10-09
| ||
| 06:53 | added missing help cross references ... (check-in: 81da2ee39f user: Ratte tags: wolfgangHelpCmd) | |
|
2010-10-08
| ||
| 19:03 | integrated test commands into the reference ... (check-in: f3f7d9e53f user: wolfgang tags: wolfgangHelpCmd) | |
| 15:51 | link the new help page to the reference.wiki document ... (check-in: 47fd0df0b0 user: wolfgang tags: wolfgangHelpCmd) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
604 605 606 607 608 609 610 |
** WEBPAGE: help
** URL: /help?cmd=CMD
*/
void help_page(void){
const char * zCmd = P("cmd");
style_header("Command line help %s%s",zCmd?" - ":"",zCmd?zCmd:"");
| | | 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 |
** WEBPAGE: help
** URL: /help?cmd=CMD
*/
void help_page(void){
const char * zCmd = P("cmd");
style_header("Command line help %s%s",zCmd?" - ":"",zCmd?zCmd:"");
if( zCmd && zCmd[0] && strcmp(zCmd,"test") ){
int rc, idx;
rc = name_search(zCmd, aCommand, count(aCommand), &idx);
if( rc==1 ){
@ <h1>unknown command: %s(zCmd)</h1>
}else if( rc==2 ){
@ <h1>ambiguous command prefix: %s(zCmd)</h1>
|
| ︙ | ︙ | |||
685 686 687 688 689 690 691 |
@ cmd_%s(aCommand[idx].zName)</a>,
}
}
@ see also the list of
@ <a href="help">available commands</a> in fossil
@ version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
}else{
| | > > | | | | | > > > > > | 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 |
@ cmd_%s(aCommand[idx].zName)</a>,
}
}
@ see also the list of
@ <a href="help">available commands</a> in fossil
@ version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
}else{
int nCol, nRow, i, ignored, cnt, showTest;
/* detect, if we show normal or test commands */
showTest = ( zCmd && !strncmp(zCmd,"test",4) );
for( i=0,ignored=0; i<count(aCommand); i++){
if( (strncmp(aCommand[i].zName,"test",4)==0) ^ showTest ) ignored++;
}
nCol = 4;
nRow = (count(aCommand)-ignored+nCol-1)/nCol;
@ <h1>Available commands</h1>
@ <table class="browser"><tr><td class="browser"><ul class="browser">
for( i=cnt=0; i<count(aCommand); i++ ){
if( cnt==nRow ){
@ </ul></td><td class="browser"><ul class="browser">
cnt=0;
}
if( (strncmp(aCommand[i].zName,"test",4)==0) ^ showTest ) continue;
@ <li><kbd><a href="help?cmd=%s(aCommand[i].zName)">
@ %s(aCommand[i].zName)</a></kbd></li>
cnt++;
}
@ </ul></td></tr></table>
if( showTest ){
@ <a href="help">show standard commands</a>
}else{
@ <a class="hidden" href="help?cmd=test">show test commands</a>
}
@ <hr/>fossil version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
}
style_footer();
}
/*
** Set the g.zBaseURL value to the full URL for the toplevel of
|
| ︙ | ︙ |
Changes to src/style.c.
| ︙ | ︙ | |||
728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 |
"format for artifact lines, no longer shunned",
@ color: blue;
},
{ "p.shunned",
"format for artifact lines beeing shunned",
@ color: blue;
},
{ 0,
0,
0
}
};
/*
** Append all of the default CSS to the CGI output.
*/
void cgi_append_default_css(void) {
int i;
for (i=0;cssDefaultList[i].elementClass;i++){
if (cssDefaultList[i].elementClass[0]){
cgi_printf("/* %s */\n%s {\n%s\n}\n\n",
| > > > > > | | | | | | | 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 |
"format for artifact lines, no longer shunned",
@ color: blue;
},
{ "p.shunned",
"format for artifact lines beeing shunned",
@ color: blue;
},
{ "a.hidden",
"format for links, that should not be very visible",
@ font-size: xx-small;
@ color: #aaaaaa;
},
{ 0,
0,
0
}
};
/*
** Append all of the default CSS to the CGI output.
*/
void cgi_append_default_css(void) {
int i;
for (i=0;cssDefaultList[i].elementClass;i++){
if (cssDefaultList[i].elementClass[0]){
cgi_printf("/* %s */\n%s {\n%s\n}\n\n",
cssDefaultList[i].comment,
cssDefaultList[i].elementClass,
cssDefaultList[i].value
);
}else{
cgi_printf("%s",
cssDefaultList[i].value
);
}
}
}
/*
** WEBPAGE: style.css
*/
|
| ︙ | ︙ |
Changes to www/reference.wiki.
| ︙ | ︙ | |||
93 94 95 96 97 98 99 | This reference is complete concerning the [/help|list] of commands and the detailed command line reference. It's always in sync with the used fossil build, because it uses the original command help, which is compiled into the binary. Additional, in-depth information in the wiki part is not available for all commands. | < > > > > > > > | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | This reference is complete concerning the [/help|list] of commands and the detailed command line reference. It's always in sync with the used fossil build, because it uses the original command help, which is compiled into the binary. Additional, in-depth information in the wiki part is not available for all commands. There are several bits of <b>fossil</b> that are not addressed in the help for commands (special wiki directories, special users, etc.) so they are (currently) not addressed here. Clarity and brevity may be sacrificed for expediency at the authors indiscretion. All spelling and grammatical mistakes are somebody elses fault.<code> void * </code> prohibited where<code> __C_PLUS_PLUS__ </code>. Title and taxes extra. Not valid in Hooptigonia. <h3>Testing fossil</h3> There are several [/help?cmd=test|test commands] to test the internals of fossil. These commands are listed on a special web page [/help?cmd=test|help?cmd=test]. This page is the counter part of <kbd><a href="/help?cmd=test-commands">fossil test-commands</a></kbd>. |