File tree Expand file tree Collapse file tree 3 files changed +357
-353
lines changed Expand file tree Collapse file tree 3 files changed +357
-353
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ Currently the Moog CLI works only by reading a wallet file containing a mnemonic
2828
2929The ` moog ` command will read the wallet file from the ` MOOG_WALLET_FILE ` environment variable.
3030
31+ <AsciinemaEmbed
32+ src="/moog/video/wallet-create.cast"
33+ options={{ autoplay: false, theme: 'asciinema', speed: 1.0 }}
34+ />
35+
3136``` bash
3237export MOOG_WALLET_FILE=wallet.json
3338```
Original file line number Diff line number Diff line change 33
44# get the input file name as CLI arg
55input_file = sys .argv [1 ]
6+ # get the minimum delta time from CLI args
7+ min_delta = float (sys .argv [2 ])
68# get the maximum delta time from CLI args
7- max_delta = float (sys .argv [2 ])
9+ max_delta = float (sys .argv [3 ])
810# base name without extension
911base_name = input_file .rsplit ("." , 1 )[0 ]
1012# extension
3638 # set delta = timestamp - last_time
3739 delta = timestamp - last_time
3840 # set new delta = min (delta, max_delta)
39- new_delta = min (delta , max_delta )
41+ if delta < max_delta :
42+ new_delta = min_delta
43+ else :
44+ new_delta = max_delta
4045 # update current_time += new_delta
4146 current_time += new_delta
4247 # update last_time = timestamp
You can’t perform that action at this time.
0 commit comments