From b8407d8322436508f91c9f83f12662002d57c82b Mon Sep 17 00:00:00 2001 From: "alex.boterolowry" Date: Fri, 13 Nov 2009 21:52:00 +0000 Subject: add basic cd/pwd suport git-svn-id: http://freebase-python.googlecode.com/svn/trunk@224 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2 --- freebase/fcl/commands.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'freebase/fcl/commands.py') diff --git a/freebase/fcl/commands.py b/freebase/fcl/commands.py index 3e7ba4b..804f3d9 100755 --- a/freebase/fcl/commands.py +++ b/freebase/fcl/commands.py @@ -259,6 +259,13 @@ def cmd_mv(fb, src, dst): cmd_ln(fb, src, dst) cmd_rm(fb, src) +def cmd_cd(fb, path): + path = fb.absid(path) + fb.pwd = path + +def cmd_pwd(fb): + print fb.pwd + def cmd_cat(fb, id, include_headers=False): """download a document from freebase to stdout %prog cat id -- cgit v1.3.1