MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_name

Method with_name

atomic-cli/src/commands/view/new.rs:229–238  ·  view source on GitHub ↗

Create a new New command with the given view name.

(name: impl Into<String>)

Source from the content-addressed store, hash-verified

227impl New {
228 /// Create a new New command with the given view name.
229 pub fn with_name(name: impl Into<String>) -> Self {
230 Self {
231 name: Some(name.into()),
232 from: None,
233 empty: false,
234 switch: false,
235 draft: false,
236 parent: None,
237 }
238 }
239
240 /// Builder: set the source view to fork from.
241 pub fn with_from(mut self, from: impl Into<String>) -> Self {

Callers 4

test_runner.pyFile · 0.45
test_checker.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected