Skip to content

Commit

Permalink
Remove 'run' (aka 'ri') command (run interactive)
Browse files Browse the repository at this point in the history
This command is excluded from v1.0.0 because it depends
on Windows-specific DirWatcher which has been removed from
'zr-fs' module it depends on.
  • Loading branch information
balacode committed Feb 24, 2021
1 parent 48fcb27 commit b600c32
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 366 deletions.
7 changes: 0 additions & 7 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,6 @@ var AllCommands = []Command{
Handler: matchWords,
Category: 4,
},
{
ShortName: "ri",
FullName: "run",
ShortInfo: "Runs in interactive mode",
Handler: runInteractive,
Category: 4,
},
} // AllCommands

// end
10 changes: 0 additions & 10 deletions env_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ type EnvProvider interface {
// -------------------------------------------------------------------------
// # File Operations

// NewDirWatcher returns a new DirWatcher that contains
// a channel that be sent the name of a file every time
// a file in the folder or one of its subfolders changes.
NewDirWatcher(dir string) (*fs.DirWatcher, error)

// DeleteFile deletes 'filename' and returns true if it no longer exists.
DeleteFile(filename string) bool

Expand Down Expand Up @@ -271,11 +266,6 @@ func (Env) PathSeparator() string {
return string(os.PathSeparator)
}

// NewDirWatcher _ _
func (Env) NewDirWatcher(dir string) (*fs.DirWatcher, error) {
return fs.NewDirWatcher(dir)
}

// TextFileExts returns a list of all text file extensions.
func (Env) TextFileExts() []string {
return fs.TextFileExts
Expand Down
312 changes: 0 additions & 312 deletions run_interactive.go

This file was deleted.

35 changes: 0 additions & 35 deletions run_interactive_test.go

This file was deleted.

4 changes: 2 additions & 2 deletions settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ var RootPath = hardcodedRootPath
// TimeLogPaths _ _
var TimeLogPaths = hardcodedTimeLogPaths

// IgnoreFilenamesWith specifies file names ignored by such
// functions as markTimeInFiles() and runInteractive().
// IgnoreFilenamesWith specifies file names ignored
// by such functions as markTimeInFiles().
// I.e. if any part of a file's path contains one of these
// substrings, the file will not be processed.
var IgnoreFilenamesWith = hardcodedIgnoreFilenamesWith
Expand Down

0 comments on commit b600c32

Please sign in to comment.