-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing deprecation methods to make transition from v1 to v2 sm…
…oother.
- Loading branch information
1 parent
3dbd6b1
commit 3fef319
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/Commander2-Deprecations/CmCommandGroupDecorator.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
] |