Menu

20 | cimit Syntax and test cases

% 
% # 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
% 
% # organization directory
% 
% cimit list org
% cimit add org UN
% cimit add org 'Section 1' France
% cimit add org CTC Russia
% cimit list org
UN
Section 1
CTC
% cimit list countries
Russia
France
% cimit list org -
UN
% cimit list org France
Section 1
% cimit rename 'Section 1' 'Section one'
% cimit add org 'Section one' USA
cimit: Section one is already in the list
% cimit rename org UN CTC
cimit: CTC is already in the list
% 
% # departments directory
% 
% cimit list departments
% cimit add department South
cimit: What organization would you wish to use as the head of the South department?
% cimit add department South CTC
% cimit list departments
cimit: Departments of which organization would you like to see?
% cimit list departments CTC
South
% cimit rename org CTC КТЦ
% cimit list departments КТЦ
South
% cimit add department South КТЦ
cimit: КТЦ already has got the South department
% cimit add department South 'Section one'
% cimit list departments 'Section one'
South
% cimit list departments КТЦ
South
% cimit rename department South Южный КТЦ
% cimit list departments КТЦ
Южный
Posted by Ivan Bilimov 2015-11-16

Log in to post a comment.