I can't walk anymore. Then James said, "Come on!" We're almost at the top.

------------------
In the passage, what is the meaning of 'Come on!'?

Correction in punctuation:

I can't walk anymore. Then James said, "Come on! We're almost at the top."

"Come on!" means keep walking, don't stop now!