mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
Store $USER in metadata
This commit is contained in:
@@ -58,12 +58,14 @@ class AsciiCast(object):
|
|||||||
|
|
||||||
command = self.command and ' '.join(self.command)
|
command = self.command and ' '.join(self.command)
|
||||||
uname = self._get_cmd_output(['uname', '-srvp'])
|
uname = self._get_cmd_output(['uname', '-srvp'])
|
||||||
|
username = os.environ['USER']
|
||||||
shell = os.environ['SHELL']
|
shell = os.environ['SHELL']
|
||||||
term = os.environ['TERM']
|
term = os.environ['TERM']
|
||||||
lines = int(self._get_cmd_output(['tput', 'lines']))
|
lines = int(self._get_cmd_output(['tput', 'lines']))
|
||||||
columns = int(self._get_cmd_output(['tput', 'cols']))
|
columns = int(self._get_cmd_output(['tput', 'cols']))
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
|
'username' : username,
|
||||||
'user_token' : self.user_token,
|
'user_token' : self.user_token,
|
||||||
'duration' : self.duration,
|
'duration' : self.duration,
|
||||||
'recorded_at': recorded_at,
|
'recorded_at': recorded_at,
|
||||||
|
|||||||
Reference in New Issue
Block a user