virtual_fs: Remove fs_sample_conversation().

We already have "help" for specific commands, so the
fs_sample_conversation() feature was mostly redundant.
This commit is contained in:
Steve Howell 2018-01-10 15:47:01 -05:00 committed by showell
parent 4b9e3d655f
commit 820e949faf

View file

@ -123,7 +123,6 @@ REGEXES = dict(
def get_commands() -> Dict[str, Tuple[Any, List[str]]]: def get_commands() -> Dict[str, Tuple[Any, List[str]]]:
return { return {
'help': (fs_help, ['command']), 'help': (fs_help, ['command']),
'sample_conversation': (fs_sample_conversation, ['command']),
'ls': (fs_ls, ['optional_path']), 'ls': (fs_ls, ['optional_path']),
'mkdir': (fs_mkdir, ['path']), 'mkdir': (fs_mkdir, ['path']),
'read': (fs_read, ['path']), 'read': (fs_read, ['path']),
@ -178,9 +177,6 @@ def fs_new() -> Dict[str, Any]:
def fs_help(fs: Dict[str, Any], user: str, cmd_name: str) -> Tuple[Dict[str, Any], Any]: def fs_help(fs: Dict[str, Any], user: str, cmd_name: str) -> Tuple[Dict[str, Any], Any]:
return fs, syntax_help(cmd_name) return fs, syntax_help(cmd_name)
def fs_sample_conversation(fs: Dict[str, Any], user: str, cmd_name: str) -> Tuple[Dict[str, str], str]:
return fs, syntax_help(cmd_name)
def fs_mkdir(fs: Dict[str, Any], user: str, fn: str) -> Tuple[Dict[str, Any], Any]: def fs_mkdir(fs: Dict[str, Any], user: str, fn: str) -> Tuple[Dict[str, Any], Any]:
path, msg = make_path(fs, user, fn) path, msg = make_path(fs, user, fn)
if msg: if msg: