From 3fef31976b6daa4aeef0dcab9f3fcde6a860a484 Mon Sep 17 00:00:00 2001 From: Julien Delplanque Date: Wed, 4 Sep 2019 15:22:18 +0200 Subject: [PATCH] Added missing deprecation methods to make transition from v1 to v2 smoother. --- .../CmCommandGroupDecorator.extension.st | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Commander2-Deprecations/CmCommandGroupDecorator.extension.st diff --git a/src/Commander2-Deprecations/CmCommandGroupDecorator.extension.st b/src/Commander2-Deprecations/CmCommandGroupDecorator.extension.st new file mode 100644 index 0000000..20c8fd9 --- /dev/null +++ b/src/Commander2-Deprecations/CmCommandGroupDecorator.extension.st @@ -0,0 +1,25 @@ +Extension { #name : #CmCommandGroupDecorator } + +{ #category : #'*Commander2-Deprecations' } +CmCommandGroupDecorator >> basicDescription [ + self deprecated: 'Use #description instead.' transformWith: '`@receiver basicDescription' -> '`@receiver description'. + ^ self description +] + +{ #category : #'*Commander2-Deprecations' } +CmCommandGroupDecorator >> basicDescription: anObject [ + self deprecated: 'Use #description: instead.' transformWith: '`@receiver basicDescription: `@arg' -> '`@receiver description: `@arg'. + ^ self description: anObject +] + +{ #category : #'*Commander2-Deprecations' } +CmCommandGroupDecorator >> basicName [ + self deprecated: 'Use #name instead.' transformWith: '`@receiver basicName' -> '`@receiver name'. + ^ self name +] + +{ #category : #'*Commander2-Deprecations' } +CmCommandGroupDecorator >> basicName: anObject [ + self deprecated: 'Use #name: instead.' transformWith: '`@receiver basicName: `@arg' -> '`@receiver name: `@arg'. + ^ self name: anObject +]