Skip to content

Commit 519cb8f

Browse files
committed
console formatting
1 parent 5a5420b commit 519cb8f

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ An interactive Solidity shell with lightweight session recording.
1414
```javascript
1515
⇒ solidity-shell
1616

17-
🚀 Entering interactive Solidity shell. Type '.help' for help, '.exit' to exit.
17+
🚀 Entering interactive Solidity shell. '.help' and '.exit' are your friends.
1818
» ℹ️ ganache-mgr: starting temp. ganache instance ...
1919
»
2020
» uint a = 100
@@ -35,21 +35,13 @@ An interactive Solidity shell with lightweight session recording.
3535
* **Note**: `$_` is a placeholder for the last known result. Feel free to use that placeholder in your scripts :)
3636
* **Note**: Special commands are dot-prefixed. Everything else is evaluated as Solidity code.
3737

38-
39-
## Examples
40-
41-
42-
![solidity-shell](https://user-images.githubusercontent.com/2865694/131328119-e363f20a-f627-43fc-8801-8d6613ad740f.gif)
43-
44-
#### Sample Usage
38+
### Usage
4539

4640
```shell
47-
48-
🚀 Entering interactive Solidity shell. .help and .exit are your friends.
49-
41+
🚀 Entering interactive Solidity shell. '.help' and '.exit' are your friends.
5042
» ℹ️ ganache-mgr: starting temp. ganache instance ...
5143
»
52-
» .help
44+
» .help
5345

5446
📚 Help:
5547
-----
@@ -85,7 +77,13 @@ cheers 🙌
8577
https://github.com/tintinweb/solidity-shell/
8678
```
8779

88-
#### Transaction vars: `msg.sender` etc.
80+
## Examples
81+
82+
83+
![solidity-shell](https://user-images.githubusercontent.com/2865694/131328119-e363f20a-f627-43fc-8801-8d6613ad740f.gif)
84+
85+
86+
### Transaction vars: `msg.sender` etc.
8987

9088
```javascript
9189
» msg.sender
@@ -94,7 +92,7 @@ cheers 🙌
9492
0x70e9B09abd6A13D2F5083CD5814076b77427199F
9593
```
9694

97-
#### Contracts, Structs, Functions
95+
### Contracts, Structs, Functions
9896

9997
```javascript
10098
⇒ solidity-shell
@@ -119,7 +117,7 @@ multi> }
119117

120118
![solidity-shell2](https://user-images.githubusercontent.com/2865694/131328490-e211e89b-ac59-4729-972b-3e3b19b75cfc.gif)
121119

122-
#### Advanced usage
120+
### Advanced usage
123121

124122
```javascript
125123
» struct yolo {uint8 x; uint8 y;}

bin/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ vorpal
6161
.mode('repl', 'Enters Solidity Shell Mode')
6262
.delimiter(c.bold('» '))
6363
.init(function (args, cb) {
64-
this.log(`🚀 Entering interactive Solidity shell. ${c.bold('.help')} and ${c.bold('.exit')} are your friends.`);
65-
this.log()
64+
this.log(`🚀 Entering interactive Solidity shell. '${c.bold('.help')}' and '${c.bold('.exit')}' are your friends.`);
6665
return cb();
6766
})
6867
.action(function (input, cb) {
@@ -143,7 +142,7 @@ cheers 🙌
143142
return cb(`${c.bold(c.yellow(shell.blockchain.proc.pid))} - ${shell.blockchain.proc.spawnargs.join(', ')}`)
144143

145144
default:
146-
console.error(`Unknown Command: '${command}'. Type ${c.bold('.help')} for a list of commands.`);
145+
console.error(`Unknown Command: '${command}'. Type '${c.bold('.help')}' for a list of commands.`);
147146
}
148147
// meta commands
149148
return cb(ret);

0 commit comments

Comments
 (0)