Allow cleaning namespaces.

Open
#58 6 comments 0 reactions 0 assignees View on GitHub

@fatkodima is already working on this.

Since Dec 21, 2020.

  • #371 by @fatkodima — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
build-system

Research direction

Start with the existing Rake::Task#clear and Rake::Task.[] methods described in the issue, then inspect how Rake::NameSpace objects and names are represented. The work is complete when a namespace can be found by name and cleared of its tasks, with the API behavior and naming resolved.

Written by the indexing model from the issue text.

Description

Rake::Task class has a clear() method for removing actions and prerequisites from task. Would it be possible to provide method like this for Rake::NameSpace to remove all tasks?

Also, there is no (at least I couldn't find any) method for searching for namespace like [](task_name) in Rake::Task. There is [](name) method in there, but it searches for task in namespace.

These two features could enable one to write:

Rake::NameSpace.get('namespace_name').clear

Where get is a bad excuse for a method name that returns namespace by name.

Dominant language
Ruby
Stars
2.5k
Forks
649
Avg merge
4m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/rake

All issues in ruby/rake

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.