def post_transform(self, args):
        """
        Inject environment variables, and write hash to alias hash file after transforming alias to commands.

        Args:
            args: A list of args to post-transform.
        """
        # Ignore 'az' if it is the first command
        args = args[1:] if args and args[0] == 'az' else args

        post_transform_commands = []
        for i, arg in enumerate(args):
            # Do not translate environment variables for command argument
            if is_alias_command(['create'], args) and i > 0 and args[i - 1] in ['-c', '--command']:
                post_transform_commands.append(arg)
            else:
                post_transform_commands.append(os.path.expandvars(arg))

        AliasManager.write_alias_config_hash(self.alias_config_hash)
        AliasManager.write_collided_alias(self.collided_alias)

        return post_transform_commands
def post_transform ( self , args ) : args = args [ 1 : ] if args and args [ 0 ] == 'az' else args post_transform_commands = [ ] for i , arg in enumerate ( args ) : if is_alias_command ( [ 'create' ] , args ) and i > 0 and args [ i - 1 ] in [ '-c' , '--command' ] : post_transform_commands . append ( arg ) else : post_transform_commands . append ( os . path . expandvars ( arg ) ) AliasManager . write_alias_config_hash ( self . alias_config_hash ) AliasManager . write_collided_alias ( self . collided_alias ) return post_transform_commands
Inject environment variables, and write hash to alias hash file after transforming alias to commands.

        Args:
            args: A list of args to post-transform.