Skip to content

Commit

Permalink
Added missing deprecation methods to make transition from v1 to v2 sm…
Browse files Browse the repository at this point in the history
…oother.
  • Loading branch information
juliendelplanque committed Sep 4, 2019
1 parent 3dbd6b1 commit 3fef319
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Commander2-Deprecations/CmCommandGroupDecorator.extension.st
Original file line number Diff line number Diff line change
@@ -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
]

0 comments on commit 3fef319

Please sign in to comment.