Add Scala implementation for the push command