Can we create tasks/issues under projects with code comments?

I am looking for an easy way to create and assign tasks/issues/bugs to person directly from commandline or from code base comment.