add class << self idiom to new command

ou no, i am ssort i wanted to pull request only one commit , not the whole branch