Provide a context resolver in base command