This repository has been archived by the owner on Dec 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
219 additions
and
120 deletions.
There are no files selected for viewing
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
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
16 changes: 16 additions & 0 deletions
16
source/Application-Starter-Tests/SensitiveArgumentTest.class.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,16 @@ | ||
" | ||
A SensitiveArgumentTest is a test class for testing the behavior of SensitiveArgument | ||
" | ||
Class { | ||
#name : #SensitiveArgumentTest, | ||
#superclass : #TestCase, | ||
#category : #'Application-Starter-Tests' | ||
} | ||
|
||
{ #category : #tests } | ||
SensitiveArgumentTest >> testName [ | ||
|
||
self | ||
assert: ( SensitiveArgument over: ( MandatoryArgument named: 'private' ) ) name | ||
equals: 'private' | ||
] |
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
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,34 @@ | ||
" | ||
A command line argument must provide a command name and way to get the argument value from a command line handler | ||
" | ||
Class { | ||
#name : #CommandLineArgument, | ||
#superclass : #Object, | ||
#category : #'Application-Starter' | ||
} | ||
|
||
{ #category : #evaluating } | ||
CommandLineArgument >> argumentFrom: aCommandLineHandler [ | ||
|
||
^ self subclassResponsibility | ||
] | ||
|
||
{ #category : #converting } | ||
CommandLineArgument >> asSensitive [ | ||
|
||
^ SensitiveArgument over: self | ||
] | ||
|
||
{ #category : #logging } | ||
CommandLineArgument >> logIn: aLogger using: configuration [ | ||
|
||
aLogger | ||
logAsInfo: | ||
( '<1s>: <2p>' expandMacrosWith: self name asString with: ( configuration at: self name ) ) | ||
] | ||
|
||
{ #category : #accessing } | ||
CommandLineArgument >> name [ | ||
|
||
^ self subclassResponsibility | ||
] |
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
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
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
Oops, something went wrong.