MCPcopy Index your code
hub / github.com/StackStorm/st2 / run

Method run

st2client/st2client/commands/auth.py:83–89  ·  view source on GitHub ↗
(self, args, **kwargs)

Source from the content-addressed store, hash-verified

81 )
82
83 def run(self, args, **kwargs):
84 if not args.password:
85 args.password = getpass.getpass()
86 instance = self.resource(ttl=args.ttl) if args.ttl else self.resource()
87 return self.manager.create(
88 instance, auth=(args.username, args.password), **kwargs
89 )
90
91 def run_and_print(self, args, **kwargs):
92 instance = self.run(args, **kwargs)

Callers 1

run_and_printMethod · 0.95

Calls 1

createMethod · 0.80

Tested by

no test coverage detected