update: separate cli logic
Merge pull request #1 from HAKASHUN/separate-cli

update: separate cli logic