Skip to content
Permalink
Browse files

Renamed #defaultCommandName as #defaultName.

Used deprecation.
  • Loading branch information...
juliendelplanque committed Aug 14, 2019
1 parent 5392939 commit c1bad4407a55e654b0183005c885289177dc0b04
Showing with 13 additions and 6 deletions.
  1. +7 −0 src/Commander2-Deprecations/CmCommand.extension.st
  2. +6 −6 src/Commander2/CmCommand.class.st
@@ -0,0 +1,7 @@
Extension { #name : #CmCommand }

{ #category : #'*Commander2-Deprecations' }
CmCommand class >> defaultCommandName [
self deprecated: 'Use #defaultName instead.' transformWith: '`@receiver defaultCommandName' -> '`@receiver defaultName'.
^ self defaultName
]
@@ -18,14 +18,14 @@ Class {
}

{ #category : #default }
CmCommand class >> defaultCommandName [

^ 'Unnamed'
CmCommand class >> defaultDescription [
^ 'I''m command and I should provide a nice description for my user.'
]

{ #category : #default }
CmCommand class >> defaultDescription [
^ 'I''m command and I should provide a nice description for my user.'
CmCommand class >> defaultName [

^ 'Unnamed'
]

{ #category : #running }
@@ -63,6 +63,6 @@ CmCommand >> hasContext [
{ #category : #initialization }
CmCommand >> initialize [
super initialize.
self basicName: self class defaultCommandName.
self basicName: self class defaultName.
self basicDescription: self class defaultDescription
]

0 comments on commit c1bad44

Please sign in to comment.
You can’t perform that action at this time.