Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions src/NewTools-Sindarin-Commands/SindarinCopyOsInfo.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Class {
#name : 'SindarinCopyOsInfo',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really specific to Sindarin to copy some infos?

Seems like something more general than Sindarin

#superclass : 'SindarinCommand',
#category : 'NewTools-Sindarin-Commands',
#package : 'NewTools-Sindarin-Commands'
}

{ #category : 'default' }
SindarinCopyOsInfo class >> defaultDescription [

^ 'Copy to clipboard system information and Pharo image version'
]

{ #category : 'initialization' }
SindarinCopyOsInfo class >> defaultIconName [
^#smallCopy
]

{ #category : 'default' }
SindarinCopyOsInfo class >> defaultName [
<toolbarExtensionDebugCommand: 50>
<codeExtensionDebugCommand:1 >
^ 'Copy system information'
]

{ #category : 'executing' }
SindarinCopyOsInfo >> execute [

Clipboard clipboardText: self systemInfo.
]

{ #category : 'as yet unclassified' }
SindarinCopyOsInfo >> systemInfo [

^ Smalltalk os platformName,
Smalltalk os version ,
Character space asString ,
Smalltalk os subtype ,
Character cr asString,
Smalltalk image lastUpdateString
]
Loading