def test():
	dbcli = getCliInstance()
	# dbcli.insertDomain('jaysonhwang.com')
	# dbcli.insertRuleset('test','jaysonhwang.com')
	print dbcli.robotsrulesetOfDomain('www.zol.com')
	print dbcli.robotsrulesetOfDomain('jayson.com')
	dbcli.showAll()
	dbcli.close()
def line(self, x, y, length, horizontal):
		if horizontal:
			self.board[y,x:x+length] = self.color
		else:
			self.board[y:y+length,x] = self.color