%
% # country directory
%
% cimit list countries
% cimit add country France
% cimit add country 'Russian Federation'
% cimit list countries
France
Russian Federation
% cimit rename country 'Russian Federation' Russia
% cimit list countries
France
Russia
% cimit delete country France
% cimit list countries
Russia
% cimit add country France
% cimit add country France
cimit: France is already in the list
% cimit rename country France Russia
cimit: Russia is already in the list
% cimit list countries
Russia
France
% ls /var/games/cimit/struct
France Russia
%
% # organizations structure
%
% cimit add org UN # add a global organization
% cimit add org Center # another global organization
% cimit add department Comission Center # add a global department of an org
% cimit add department 'Section 1' Comission France # add a localized department
% cimit
%
% # person directory
%
% ls /var/games/cimit/people
% cimit add man 'Marcelo Raymond'
% cimit add woman 'Sarah Salvador'
% ls /var/games/cimit/people
1 2
% cat /var/games/cimit/people/1
name:Marcelo Raymond
gender:male
condition:alive
% cimit view person 'Sarah Salvador'
Person code 2
Name Sarah Salvador
Gender female
Condition alive
% cimit view person 2
Person code 2
Name Sarah Salvador
Gender female
Condition alive
% cimit add person 3
cimit: 3 is not a valid person name
% cimit get person condition 'Sarah Salvador'
alive
% cimit get person name 1
Marcelo Raymond
% cimit get person name 3
% cimit add person 'Marcelo Raymond'
% cimit get person name 3
Marcelo Raymond
% cimit get person gender 3
male
% cimit get woman condition 'Marcelo Raymond'
alive
alive
% cimit edit person condition dead 'Marcelo Raymond'
cimit: there are several persons named Marcelo Raymond, use person code
% cimit get person code 'Marcelo Raymond'
1
3
% cimit edit person condition dead 3
% cimit get person condition 'Marcelo Raymond'
alive
dead
% cimit get person condition 3
dead
% cimit get person condition 1
alive
% cimit edit person code 3 4
cimit: code is the system field, it can not be edited
% cimit edit woman test_field 'some value' 'Sarah Salvador'
% cimit get woman test_field 2
some value
/usr/local/sbin/cimit (1030) % ls -RFl
total 12
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:35 cimit*
lrwxr-xr-x 1 nostoc wheel 7 17 ноя 08:32 countries@ -> country
drwxr-xr-x 2 nostoc wheel 512 17 ноя 08:31 country/
lrwxr-xr-x 2 nostoc wheel 512 17 ноя 08:34 department@ -> org
lrwxr-xr-x 1 nostoc wheel 10 17 ноя 08:35 departments@ -> department
drwxr-xr-x 2 nostoc wheel 512 17 ноя 08:33 org/
lrwxr-xr-x 1 nostoc wheel 3 17 ноя 08:34 orgs@ -> org
./country:
total 0
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:30 add*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:31 delete*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:31 list*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:31 rename*
./department:
total 0
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:34 add*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:34 delete*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:34 list*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:34 rename*
./org:
total 0
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:33 add*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:33 delete*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:33 list*
-rwxr-xr-x 1 nostoc wheel 0 17 ноя 08:33 rename*
/usr/local/sbin/cimit (1031) %
/var/games/cimit/