Hex Artifact Content
Not logged in

Artifact 0e21eeca2026aaab4b47e8f2bcca1614420334d4:

File tools/tclfossil/lib/vc/fossil/cmd-1.0.tm part of check-in [2b9c6df430] - tclfossil: initial directory structure and package split up by mjanssen on 2008-02-19 18:05:51.

0000: 23 23 20 2d 2a 2d 20 74 63 6c 20 2d 2a 2d 0a 23  ## -*- tcl -*-.#
0010: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20   # ## ### ##### 
0020: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
0030: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23  ###### #########
0040: 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 23 20  ############.## 
0050: 43 6f 70 79 72 69 67 68 74 20 28 63 29 20 32 30  Copyright (c) 20
0060: 30 38 20 4d 61 72 6b 20 4a 61 6e 73 73 65 6e 2e  08 Mark Janssen.
0070: 0a 23 0a 23 20 54 68 69 73 20 73 6f 66 74 77 61  .#.# This softwa
0080: 72 65 20 69 73 20 6c 69 63 65 6e 73 65 64 20 61  re is licensed a
0090: 73 20 64 65 73 63 72 69 62 65 64 20 69 6e 20 74  s described in t
00a0: 68 65 20 66 69 6c 65 20 4c 49 43 45 4e 53 45 2c  he file LICENSE,
00b0: 20 77 68 69 63 68 0a 23 20 79 6f 75 20 73 68 6f   which.# you sho
00c0: 75 6c 64 20 68 61 76 65 20 72 65 63 65 69 76 65  uld have receive
00d0: 64 20 61 73 20 70 61 72 74 20 6f 66 20 74 68 69  d as part of thi
00e0: 73 20 64 69 73 74 72 69 62 75 74 69 6f 6e 2e 0a  s distribution..
00f0: 23 0a 23 20 54 68 69 73 20 73 6f 66 74 77 61 72  #.# This softwar
0100: 65 20 63 6f 6e 73 69 73 74 73 20 6f 66 20 76 6f  e consists of vo
0110: 6c 75 6e 74 61 72 79 20 63 6f 6e 74 72 69 62 75  luntary contribu
0120: 74 69 6f 6e 73 20 6d 61 64 65 20 62 79 20 6d 61  tions made by ma
0130: 6e 79 0a 23 20 69 6e 64 69 76 69 64 75 61 6c 73  ny.# individuals
0140: 2e 20 20 46 6f 72 20 65 78 61 63 74 20 63 6f 6e  .  For exact con
0150: 74 72 69 62 75 74 69 6f 6e 20 68 69 73 74 6f 72  tribution histor
0160: 79 2c 20 73 65 65 20 74 68 65 20 72 65 76 69 73  y, see the revis
0170: 69 6f 6e 0a 23 20 68 69 73 74 6f 72 79 20 61 6e  ion.# history an
0180: 64 20 6c 6f 67 73 2c 20 61 76 61 69 6c 61 62 6c  d logs, availabl
0190: 65 20 61 74 20 68 74 74 70 3a 2f 2f 66 6f 73 73  e at http://foss
01a0: 69 6c 2d 73 63 6d 2e 68 77 61 63 69 2e 63 6f 6d  il-scm.hwaci.com
01b0: 2f 66 6f 73 73 69 6c 0a 23 20 23 20 23 23 20 23  /fossil.# # ## #
01c0: 23 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23  ## ##### #######
01d0: 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23 20  # ############# 
01e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
01f0: 23 23 23 23 23 0a 0a 23 23 20 46 6f 73 73 69 6c  #####..## Fossil
0200: 20 73 75 62 63 6f 6d 6d 61 6e 64 20 6d 61 6e 61   subcommand mana
0210: 67 6d 65 6e 74 2e 0a 0a 23 20 23 20 23 23 20 23  gment...# # ## #
0220: 23 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23  ## ##### #######
0230: 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23 20  # ############# 
0240: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0250: 23 23 23 23 23 0a 23 23 20 52 65 71 75 69 72 65  #####.## Require
0260: 6d 65 6e 74 73 0a 0a 70 61 63 6b 61 67 65 20 72  ments..package r
0270: 65 71 75 69 72 65 20 54 63 6c 20 38 2e 35 20 20  equire Tcl 8.5  
0280: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0290: 20 20 20 20 20 20 20 20 20 20 20 3b 20 23 20 52             ; # R
02a0: 65 71 75 69 72 65 64 20 72 75 6e 74 69 6d 65 2e  equired runtime.
02b0: 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65  .package require
02c0: 20 73 71 6c 69 74 65 33 20 20 20 20 20 20 20 20   sqlite3        
02d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
02e0: 20 20 20 20 20 3b 20 23 20 46 6f 73 73 69 6c 20       ; # Fossil 
02f0: 64 61 74 61 62 61 73 65 20 61 63 63 65 73 73 0a  database access.
0300: 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20  package require 
0310: 73 6e 69 74 20 20 20 20 20 20 20 20 20 20 20 20  snit            
0320: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0330: 20 20 20 20 3b 20 23 20 4f 4f 20 73 79 73 74 65      ; # OO syste
0340: 6d 2e 0a 0a 0a 70 61 63 6b 61 67 65 20 70 72 6f  m....package pro
0350: 76 69 64 65 20 76 63 3a 3a 66 6f 73 73 69 6c 3a  vide vc::fossil:
0360: 3a 63 6d 64 20 31 2e 30 0a 0a 23 20 23 20 23 23  :cmd 1.0..# # ##
0370: 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23 23   ### ##### #####
0380: 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23  ### ############
0390: 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23 23  # ##############
03a0: 23 23 23 23 23 23 23 0a 23 23 0a 0a 6e 61 6d 65  #######.##..name
03b0: 73 70 61 63 65 20 65 76 61 6c 20 3a 3a 76 63 3a  space eval ::vc:
03c0: 3a 66 6f 73 73 69 6c 20 7b 0a 20 20 20 20 6e 61  :fossil {.    na
03d0: 6d 65 73 70 61 63 65 20 65 78 70 6f 72 74 20 63  mespace export c
03e0: 6d 64 0a 20 20 20 20 73 6e 69 74 3a 3a 74 79 70  md.    snit::typ
03f0: 65 20 63 6d 64 20 7b 0a 09 74 79 70 65 76 61 72  e cmd {..typevar
0400: 69 61 62 6c 65 20 63 6f 6d 6d 61 6e 64 73 20 22  iable commands "
0410: 22 0a 0a 09 74 79 70 65 6d 65 74 68 6f 64 20 61  "...typemethod a
0420: 64 64 20 7b 63 6f 6d 6d 61 6e 64 7d 20 7b 0a 09  dd {command} {..
0430: 20 20 20 20 6c 61 70 70 65 6e 64 20 63 6f 6d 6d      lappend comm
0440: 61 6e 64 73 20 24 63 6f 6d 6d 61 6e 64 0a 09 20  ands $command.. 
0450: 20 20 20 0a 09 7d 0a 09 0a 09 74 79 70 65 6d 65     ..}....typeme
0460: 74 68 6f 64 20 6c 69 73 74 20 7b 7d 20 7b 0a 09  thod list {} {..
0470: 20 20 20 20 72 65 74 75 72 6e 20 24 63 6f 6d 6d      return $comm
0480: 61 6e 64 73 0a 09 7d 0a 20 20 20 20 7d 0a 7d 0a  ands..}.    }.}.
0490: 0a                                               .