google / google/python-fire

Use fire without exposing private members

Đang mở
#282 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
28.2k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

```python
import fire
class Calculator(object):

def add(self, x, y):
return x + y

def multiply(self, x, y):
return x * y

def _sub(self, x, y):# Privite method
return x -y
```
Now, i dont want to expose _sub method on cli, How can i do this. thanks..

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.