Skip to content
Permalink
Browse files

Moved spec-specific methods on class side of CmCommand to Spec integr…

…ation package.
  • Loading branch information...
juliendelplanque committed Aug 12, 2019
1 parent 152e6a7 commit 11d799799ec055d5113ccf589f42cf58822ab322
Showing with 0 additions and 25 deletions.
  1. +0 −25 src/Commander2/CmCommand.class.st
@@ -28,31 +28,6 @@ CmCommand class >> defaultDescription [
^ 'I''m command and I should provide a nice description for my user.'
]

{ #category : #'instance creation' }
CmCommand class >> forSpec [
^ self new
asSpecCommand
]

{ #category : #'instance creation' }
CmCommand class >> forSpecContext: anObject [

^ self forSpec
context: anObject;
yourself
]

{ #category : #'instance creation' }
CmCommand class >> forSpecWithIconNamed: aSymbol [
^ self new asSpecCommandWithIconNamed: aSymbol
]

{ #category : #'instance creation' }
CmCommand class >> forSpecWithIconNamed: aSymbol shortcutKey: aKMKeyCombination [
^ self new
asSpecCommandWithIconNamed: aSymbol shortcutKey: aKMKeyCombination
]

{ #category : #running }
CmCommand class >> runWith: anObject [
self new runWith: anObject

0 comments on commit 11d7997

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